#AFAD2D#AFAD2D

#AFAD2D is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.7% C 0.143 H 108.6°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#AFAD2D
RGBrgb(175, 173, 45)
HSLhsl(59, 59%, 43%)
HSVhsv(59, 74%, 69%)
CMYKcmyk(0%, 1.1%, 74.3%, 31.4%)
CIE-LABlab(68.89, -14.14, 61.55)
CIE-LCHlch(68.89, 63.15, 102.94°)
OKLaboklab(72.7% -0.0454 0.1353)
OKLCHoklch(72.7% 0.143 108.6)
XYZxyz(33.0977, 39.1916, 8.3034)
Luminance0.3919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD2D #2D2FAF
analogous
#AF6C2D #AFAD2D #70AF2D
triadic
#AFAD2D #2DAFAD #AD2DAF
tetradic
#AFAD2D #2DAF6C #2D2FAF #AF2D70
square
#AFAD2D #2DAF6C #2D2FAF #AF2D70
split-complementary
#AFAD2D #2D70AF #6C2DAF
monochromatic
#4E4D14 #7E7D20 #AFAD2D #D0CE49 #DDDB7A

Accessibility & contrast

On white

2.38
#AFAD2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#AFAD2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD2D
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD2D#FFFFFF#000000##000000
##AFAD2D1.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA612
Deuteranopia (green-blind)
#BDAA37
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad2d;
/* rgb */ color: rgb(175, 173, 45);
/* oklch */ color: oklch(72.7% 0.143 108.6);
Tailwind
colors: {
  custom: {
    50: '#cac570',
    500: '#afad2d',
    950: '#000000',
  },
}
SCSS
$custom: #afad2d;
$custom-light: #cac570;
$custom-dark: #000000;
JSON
{
  "hex": "#afad2d",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 45
  },
  "hsl": {
    "h": 59.077,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.72696,
    "c": 0.14276,
    "h": 108.6
  },
  "luminance": 0.39191
}

Semantic roles & 50–950 ramp

primary
#AFAD2D
secondary
#7374C5
accent
#48E246
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD2D

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

Preview Lab → · Contrast checker → · Palette generator →

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