#AFBD2C#AFBD2C

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

Color values

HEX#AFBD2C
RGBrgb(175, 189, 44)
HSLhsl(66, 62%, 46%)
HSVhsv(66, 77%, 74%)
CMYKcmyk(7.4%, 0%, 76.7%, 25.9%)
CIE-LABlab(73.34, -22.23, 66.00)
CIE-LCHlch(73.34, 69.65, 108.62°)
OKLaboklab(76.26% -0.068 0.1446)
OKLCHoklch(76.26% 0.16 115.2)
XYZxyz(36.3325, 45.6916, 9.2878)
Luminance0.4569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBD2C #3A2CBD
analogous
#BD822C #AFBD2C #66BD2C
triadic
#AFBD2C #2CAFBD #BD2CAF
tetradic
#AFBD2C #2CBD82 #3A2CBD #BD2C66
square
#AFBD2C #2CBD82 #3A2CBD #BD2C66
split-complementary
#AFBD2C #2C66BD #822CBD
monochromatic
#535A15 #818B20 #AFBD2C #C9D650 #D9E282

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBD2C#FFFFFF#000000##000000
##AFBD2C1.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)
#CBB301
Deuteranopia (green-blind)
#CAB539
Tritanopia (blue-blind)
#BBB2A2
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbd2c;
/* rgb */ color: rgb(175, 189, 44);
/* oklch */ color: oklch(76.3% 0.160 115.2);
Tailwind
colors: {
  custom: {
    50: '#cbd071',
    500: '#afbd2c',
    950: '#000000',
  },
}
SCSS
$custom: #afbd2c;
$custom-light: #cbd071;
$custom-dark: #000000;
JSON
{
  "hex": "#afbd2c",
  "rgb": {
    "r": 175,
    "g": 189,
    "b": 44
  },
  "hsl": {
    "h": 65.793,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.76261,
    "c": 0.15981,
    "h": 115.2
  },
  "luminance": 0.45691
}

Semantic roles & 50–950 ramp

primary
#AFBD2C
secondary
#827ACB
accent
#42E552
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B

Preview Lab

Preview with #AFBD2C

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

Preview Lab → · Contrast checker → · Palette generator →

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