#AFAB34#AFAB34

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

Color values

HEX#AFAB34
RGBrgb(175, 171, 52)
HSLhsl(58, 54%, 45%)
HSVhsv(58, 70%, 69%)
CMYKcmyk(0%, 2.3%, 70.3%, 31.4%)
CIE-LABlab(68.38, -12.77, 58.53)
CIE-LCHlch(68.38, 59.91, 102.31°)
OKLaboklab(72.3% -0.0409 0.1302)
OKLCHoklch(72.3% 0.137 107.5)
XYZxyz(32.8632, 38.4888, 8.9461)
Luminance0.3849 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB34 #3438AF
analogous
#AF6E34 #AFAB34 #76AF34
triadic
#AFAB34 #34AFAB #AB34AF
tetradic
#AFAB34 #34AF6E #3438AF #AF3476
square
#AFAB34 #34AF6E #3438AF #AF3476
split-complementary
#AFAB34 #3476AF #6E34AF
monochromatic
#514F18 #807D26 #AFAB34 #CCC854 #DAD783

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB34#FFFFFF#000000##000000
##AFAB341.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)
#B9A421
Deuteranopia (green-blind)
#BCA93C
Tritanopia (blue-blind)
#BCA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab34;
/* rgb */ color: rgb(175, 171, 52);
/* oklch */ color: oklch(72.3% 0.137 107.5);
Tailwind
colors: {
  custom: {
    50: '#cac373',
    500: '#afab34',
    950: '#000000',
  },
}
SCSS
$custom: #afab34;
$custom-light: #cac373;
$custom-dark: #000000;
JSON
{
  "hex": "#afab34",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 52
  },
  "hsl": {
    "h": 58.049,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72302,
    "c": 0.1365,
    "h": 107.5
  },
  "luminance": 0.38488
}

Semantic roles & 50–950 ramp

primary
#AFAB34
secondary
#7B7DC4
accent
#4FDE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB34

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

Preview Lab → · Contrast checker → · Palette generator →

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