#AFAF37#AFAF37

#AFAF37 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.2% C 0.139 H 109.4°. Best body text is #000000 at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#AFAF37
RGBrgb(175, 175, 55)
HSLhsl(60, 52%, 45%)
HSVhsv(60, 69%, 69%)
CMYKcmyk(0%, 0%, 68.6%, 31.4%)
CIE-LABlab(69.51, -14.67, 58.50)
CIE-LCHlch(69.51, 60.31, 104.08°)
OKLaboklab(73.21% -0.046 0.1307)
OKLCHoklch(73.21% 0.139 109.4)
XYZxyz(33.6999, 40.0507, 9.5691)
Luminance0.4005 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF37 #3737AF
analogous
#AF7337 #AFAF37 #73AF37
triadic
#AFAF37 #37AFAF #AF37AF
tetradic
#AFAF37 #37AF73 #3737AF #AF3773
square
#AFAF37 #37AF73 #3737AF #AF3773
split-complementary
#AFAF37 #3773AF #7337AF
monochromatic
#52521A #808028 #AFAF37 #CBCB59 #D9D987

Accessibility & contrast

On white

2.33
#AFAF37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.01
#AFAF37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF37
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF37#FFFFFF#000000##000000
##AFAF371.002.339.019.01
#FFFFFF2.331.0021.0021.00
#0000009.0121.001.001.00
##0000009.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA824
Deuteranopia (green-blind)
#BEAC3F
Tritanopia (blue-blind)
#BBA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf37;
/* rgb */ color: rgb(175, 175, 55);
/* oklch */ color: oklch(73.2% 0.139 109.4);
Tailwind
colors: {
  custom: {
    50: '#cac675',
    500: '#afaf37',
    950: '#000000',
  },
}
SCSS
$custom: #afaf37;
$custom-light: #cac675;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf37",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 55
  },
  "hsl": {
    "h": 60,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73207,
    "c": 0.13852,
    "h": 109.4
  },
  "luminance": 0.4005
}

Semantic roles & 50–950 ramp

primary
#AFAF37
secondary
#7F7FC3
accent
#4CDC4C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFAF37

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

Preview Lab → · Contrast checker → · Palette generator →

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