#AFAD38#AFAD38

#AFAD38 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.8% C 0.136 H 108.4°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#AFAD38
RGBrgb(175, 173, 56)
HSLhsl(59, 52%, 45%)
HSVhsv(59, 68%, 69%)
CMYKcmyk(0%, 1.1%, 68%, 31.4%)
CIE-LABlab(68.96, -13.59, 57.57)
CIE-LCHlch(68.96, 59.15, 103.28°)
OKLaboklab(72.77% -0.0428 0.1289)
OKLCHoklch(72.77% 0.136 108.4)
XYZxyz(33.3377, 39.2877, 9.5678)
Luminance0.3929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD38 #383AAF
analogous
#AF7238 #AFAD38 #75AF38
triadic
#AFAD38 #38AFAD #AD38AF
tetradic
#AFAD38 #38AF72 #383AAF #AF3875
square
#AFAD38 #38AF72 #383AAF #AF3875
split-complementary
#AFAD38 #3875AF #7238AF
monochromatic
#52511A #817F29 #AFAD38 #CAC85A #D9D888

Accessibility & contrast

On white

2.37
#AFAD38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#AFAD38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD38
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD38#FFFFFF#000000##000000
##AFAD381.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA626
Deuteranopia (green-blind)
#BDAA40
Tritanopia (blue-blind)
#BBA296
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad38;
/* rgb */ color: rgb(175, 173, 56);
/* oklch */ color: oklch(72.8% 0.136 108.4);
Tailwind
colors: {
  custom: {
    50: '#cac576',
    500: '#afad38',
    950: '#000000',
  },
}
SCSS
$custom: #afad38;
$custom-light: #cac576;
$custom-dark: #000000;
JSON
{
  "hex": "#afad38",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 56
  },
  "hsl": {
    "h": 58.992,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72773,
    "c": 0.1358,
    "h": 108.4
  },
  "luminance": 0.39287
}

Semantic roles & 50–950 ramp

primary
#AFAD38
secondary
#8081C3
accent
#4FDB4D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAD38

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

Preview Lab → · Contrast checker → · Palette generator →

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