#AFAA37#AFAA37

#AFAA37 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.1% C 0.133 H 106.9°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#AFAA37
RGBrgb(175, 170, 55)
HSLhsl(58, 52%, 45%)
HSVhsv(58, 69%, 69%)
CMYKcmyk(0%, 2.9%, 68.6%, 31.4%)
CIE-LABlab(68.12, -12.09, 57.12)
CIE-LCHlch(68.12, 58.38, 101.95°)
OKLaboklab(72.1% -0.0387 0.1278)
OKLCHoklch(72.1% 0.133 106.9)
XYZxyz(32.7447, 38.1404, 9.2507)
Luminance0.3814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA37 #373CAF
analogous
#AF6E37 #AFAA37 #78AF37
triadic
#AFAA37 #37AFAA #AA37AF
tetradic
#AFAA37 #37AF6E #373CAF #AF3778
square
#AFAA37 #37AF6E #373CAF #AF3778
split-complementary
#AFAA37 #3778AF #6E37AF
monochromatic
#52501A #807D28 #AFAA37 #CBC659 #D9D687

Accessibility & contrast

On white

2.43
#AFAA37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#AFAA37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA37
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA37#FFFFFF#000000##000000
##AFAA371.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A426
Deuteranopia (green-blind)
#BBA83F
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa37;
/* rgb */ color: rgb(175, 170, 55);
/* oklch */ color: oklch(72.1% 0.133 106.9);
Tailwind
colors: {
  custom: {
    50: '#cac375',
    500: '#afaa37',
    950: '#000000',
  },
}
SCSS
$custom: #afaa37;
$custom-light: #cac375;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa37",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 55
  },
  "hsl": {
    "h": 57.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72105,
    "c": 0.13349,
    "h": 106.9
  },
  "luminance": 0.38139
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFAA37

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

Preview Lab → · Contrast checker → · Palette generator →

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