#AFAA36#AFAA36

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

Color values

HEX#AFAA36
RGBrgb(175, 170, 54)
HSLhsl(58, 53%, 45%)
HSVhsv(58, 69%, 69%)
CMYKcmyk(0%, 2.9%, 69.1%, 31.4%)
CIE-LABlab(68.12, -12.14, 57.50)
CIE-LCHlch(68.12, 58.77, 101.93°)
OKLaboklab(72.1% -0.039 0.1284)
OKLCHoklch(72.1% 0.134 106.9)
XYZxyz(32.7210, 38.1309, 9.1257)
Luminance0.3813 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA36 #363BAF
analogous
#AF6E36 #AFAA36 #77AF36
triadic
#AFAA36 #36AFAA #AA36AF
tetradic
#AFAA36 #36AF6E #363BAF #AF3677
square
#AFAA36 #36AF6E #363BAF #AF3677
split-complementary
#AFAA36 #3677AF #6E36AF
monochromatic
#514F19 #807D28 #AFAA36 #CBC657 #DAD686

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAA36#FFFFFF#000000##000000
##AFAA361.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)
#B8A424
Deuteranopia (green-blind)
#BBA83E
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa36;
/* rgb */ color: rgb(175, 170, 54);
/* oklch */ color: oklch(72.1% 0.134 106.9);
Tailwind
colors: {
  custom: {
    50: '#cac374',
    500: '#afaa36',
    950: '#000000',
  },
}
SCSS
$custom: #afaa36;
$custom-light: #cac374;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa36",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 54
  },
  "hsl": {
    "h": 57.521,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.72097,
    "c": 0.13419,
    "h": 106.9
  },
  "luminance": 0.3813
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFAA36

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

Preview Lab → · Contrast checker → · Palette generator →

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