#AFAB37#AFAB37

#AFAB37 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.134 H 107.4°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#AFAB37
RGBrgb(175, 171, 55)
HSLhsl(58, 52%, 45%)
HSVhsv(58, 69%, 69%)
CMYKcmyk(0%, 2.3%, 68.6%, 31.4%)
CIE-LABlab(68.40, -12.61, 57.40)
CIE-LCHlch(68.40, 58.76, 102.39°)
OKLaboklab(72.32% -0.0402 0.1283)
OKLCHoklch(72.32% 0.134 107.4)
XYZxyz(32.9329, 38.5167, 9.3134)
Luminance0.3852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB37 #373BAF
analogous
#AF6F37 #AFAB37 #77AF37
triadic
#AFAB37 #37AFAB #AB37AF
tetradic
#AFAB37 #37AF6F #373BAF #AF3777
square
#AFAB37 #37AF6F #373BAF #AF3777
split-complementary
#AFAB37 #3777AF #6F37AF
monochromatic
#52501A #807D28 #AFAB37 #CBC759 #D9D787

Accessibility & contrast

On white

2.41
#AFAB37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#AFAB37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB37
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB37#FFFFFF#000000##000000
##AFAB371.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A425
Deuteranopia (green-blind)
#BBA93F
Tritanopia (blue-blind)
#BCA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab37;
/* rgb */ color: rgb(175, 171, 55);
/* oklch */ color: oklch(72.3% 0.134 107.4);
Tailwind
colors: {
  custom: {
    50: '#cac375',
    500: '#afab37',
    950: '#000000',
  },
}
SCSS
$custom: #afab37;
$custom-light: #cac375;
$custom-dark: #000000;
JSON
{
  "hex": "#afab37",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 55
  },
  "hsl": {
    "h": 58,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72325,
    "c": 0.13448,
    "h": 107.4
  },
  "luminance": 0.38516
}

Semantic roles & 50–950 ramp

primary
#AFAB37
secondary
#7F81C3
accent
#51DC4C
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB37

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

Preview Lab → · Contrast checker → · Palette generator →

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