#AFB02F#AFB02F

#AFB02F is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.4% C 0.145 H 109.9°. Best body text is #000000 at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#AFB02F
RGBrgb(175, 176, 47)
HSLhsl(60, 58%, 44%)
HSVhsv(60, 73%, 69%)
CMYKcmyk(0.6%, 0%, 73.3%, 31%)
CIE-LABlab(69.73, -15.58, 61.66)
CIE-LCHlch(69.73, 63.60, 104.18°)
OKLaboklab(73.37% -0.0493 0.1359)
OKLCHoklch(73.37% 0.145 109.9)
XYZxyz(33.7188, 40.3708, 8.7049)
Luminance0.4037 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB02F #302FB0
analogous
#B0702F #AFB02F #6EB02F
triadic
#AFB02F #2FAFB0 #B02FAF
tetradic
#AFB02F #2FB070 #302FB0 #B02F6E
square
#AFB02F #2FB070 #302FB0 #B02F6E
split-complementary
#AFB02F #2F6EB0 #702FB0
monochromatic
#4F4F15 #7F8022 #AFB02F #CECF4D #DCDC7D

Accessibility & contrast

On white

2.31
#AFB02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.07
#AFB02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB02F
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB02F#FFFFFF#000000##000000
##AFB02F1.002.319.079.07
#FFFFFF2.311.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA815
Deuteranopia (green-blind)
#C0AC39
Tritanopia (blue-blind)
#BBA597
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb02f;
/* rgb */ color: rgb(175, 176, 47);
/* oklch */ color: oklch(73.4% 0.145 109.9);
Tailwind
colors: {
  custom: {
    50: '#cac771',
    500: '#afb02f',
    950: '#000000',
  },
}
SCSS
$custom: #afb02f;
$custom-light: #cac771;
$custom-dark: #000000;
JSON
{
  "hex": "#afb02f",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 47
  },
  "hsl": {
    "h": 60.465,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73373,
    "c": 0.14459,
    "h": 109.9
  },
  "luminance": 0.4037
}

Semantic roles & 50–950 ramp

primary
#AFB02F
secondary
#7676C5
accent
#47E148
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB02F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AFB02F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva