#AFB02B#AFB02B

#AFB02B is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.3% C 0.147 H 110.0°. Best body text is #000000 at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#AFB02B
RGBrgb(175, 176, 43)
HSLhsl(60, 61%, 43%)
HSVhsv(60, 76%, 69%)
CMYKcmyk(0.6%, 0%, 75.6%, 31%)
CIE-LABlab(69.71, -15.76, 62.98)
CIE-LCHlch(69.71, 64.92, 104.05°)
OKLaboklab(73.35% -0.0502 0.138)
OKLCHoklch(73.35% 0.147 110)
XYZxyz(33.6418, 40.3400, 8.2993)
Luminance0.4034 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB02B #2C2BB0
analogous
#B06E2B #AFB02B #6CB02B
triadic
#AFB02B #2BAFB0 #B02BAF
tetradic
#AFB02B #2BB06E #2C2BB0 #B02B6C
square
#AFB02B #2BB06E #2C2BB0 #B02B6C
split-complementary
#AFB02B #2B6CB0 #6E2BB0
monochromatic
#4D4E13 #7E7F1F #AFB02B #D1D246 #DDDE78

Accessibility & contrast

On white

2.32
#AFB02B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB02B#FFFFFF#000000##000000
##AFB02B1.002.329.079.07
#FFFFFF2.321.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA809
Deuteranopia (green-blind)
#C0AC36
Tritanopia (blue-blind)
#BCA597
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb02b;
/* rgb */ color: rgb(175, 176, 43);
/* oklch */ color: oklch(73.3% 0.147 110.0);
Tailwind
colors: {
  custom: {
    50: '#cbc76f',
    500: '#afb02b',
    950: '#000000',
  },
}
SCSS
$custom: #afb02b;
$custom-light: #cbc76f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb02b",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 43
  },
  "hsl": {
    "h": 60.451,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73348,
    "c": 0.14683,
    "h": 110
  },
  "luminance": 0.40339
}

Semantic roles & 50–950 ramp

primary
#AFB02B
secondary
#7271C6
accent
#44E445
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB02B

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

Preview Lab → · Contrast checker → · Palette generator →

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