#AFBD2A#AFBD2A

#AFBD2A is a light, vivid yellow. Relative luminance 0.457; OKLCH L 76.3% C 0.161 H 115.2°. Best body text is #000000 at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#AFBD2A
RGBrgb(175, 189, 42)
HSLhsl(66, 64%, 45%)
HSVhsv(66, 78%, 74%)
CMYKcmyk(7.4%, 0%, 77.8%, 25.9%)
CIE-LABlab(73.34, -22.32, 66.60)
CIE-LCHlch(73.34, 70.24, 108.52°)
OKLaboklab(76.25% -0.0684 0.1455)
OKLCHoklch(76.25% 0.161 115.2)
XYZxyz(36.2958, 45.6770, 9.0946)
Luminance0.4568 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBD2A #382ABD
analogous
#BD812A #AFBD2A #66BD2A
triadic
#AFBD2A #2AAFBD #BD2AAF
tetradic
#AFBD2A #2ABD81 #382ABD #BD2A66
square
#AFBD2A #2ABD81 #382ABD #BD2A66
split-complementary
#AFBD2A #2A66BD #812ABD
monochromatic
#525914 #818B1F #AFBD2A #CAD74D #D9E37F

Accessibility & contrast

On white

2.07
#AFBD2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.14
#AFBD2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBD2A
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBD2A#FFFFFF#000000##000000
##AFBD2A1.002.0710.1410.14
#FFFFFF2.071.0021.0021.00
#00000010.1421.001.001.00
##00000010.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB300
Deuteranopia (green-blind)
#CAB538
Tritanopia (blue-blind)
#BBB2A2
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbd2a;
/* rgb */ color: rgb(175, 189, 42);
/* oklch */ color: oklch(76.3% 0.161 115.2);
Tailwind
colors: {
  custom: {
    50: '#cbd070',
    500: '#afbd2a',
    950: '#000000',
  },
}
SCSS
$custom: #afbd2a;
$custom-light: #cbd070;
$custom-dark: #000000;
JSON
{
  "hex": "#afbd2a",
  "rgb": {
    "r": 175,
    "g": 189,
    "b": 42
  },
  "hsl": {
    "h": 65.714,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.7625,
    "c": 0.16081,
    "h": 115.2
  },
  "luminance": 0.45676
}

Semantic roles & 50–950 ramp

primary
#AFBD2A
secondary
#8078CB
accent
#41E751
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B

Preview Lab

Preview with #AFBD2A

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

Preview Lab → · Contrast checker → · Palette generator →

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