#AFAA34#AFAA34

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

Color values

HEX#AFAA34
RGBrgb(175, 170, 52)
HSLhsl(58, 54%, 45%)
HSVhsv(58, 70%, 69%)
CMYKcmyk(0%, 2.9%, 70.3%, 31.4%)
CIE-LABlab(68.10, -12.25, 58.26)
CIE-LCHlch(68.10, 59.54, 101.87°)
OKLaboklab(72.08% -0.0395 0.1296)
OKLCHoklch(72.08% 0.136 106.9)
XYZxyz(32.6750, 38.1125, 8.8834)
Luminance0.3811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA34 #3439AF
analogous
#AF6D34 #AFAA34 #77AF34
triadic
#AFAA34 #34AFAA #AA34AF
tetradic
#AFAA34 #34AF6D #3439AF #AF3477
square
#AFAA34 #34AF6D #3439AF #AF3477
split-complementary
#AFAA34 #3477AF #6D34AF
monochromatic
#514E18 #807C26 #AFAA34 #CCC754 #DAD783

Accessibility & contrast

On white

2.44
#AFAA34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#AFAA34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA34
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA34#FFFFFF#000000##000000
##AFAA341.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afaa34;
/* rgb */ color: rgb(175, 170, 52);
/* oklch */ color: oklch(72.1% 0.136 106.9);
Tailwind
colors: {
  custom: {
    50: '#cac373',
    500: '#afaa34',
    950: '#000000',
  },
}
SCSS
$custom: #afaa34;
$custom-light: #cac373;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa34",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 52
  },
  "hsl": {
    "h": 57.561,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72082,
    "c": 0.13553,
    "h": 106.9
  },
  "luminance": 0.38111
}

Semantic roles & 50–950 ramp

primary
#AFAA34
secondary
#7B7EC4
accent
#50DE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA34

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

Preview Lab → · Contrast checker → · Palette generator →

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