#AFAB35#AFAB35

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

Color values

HEX#AFAB35
RGBrgb(175, 171, 53)
HSLhsl(58, 54%, 45%)
HSVhsv(58, 70%, 69%)
CMYKcmyk(0%, 2.3%, 69.7%, 31.4%)
CIE-LABlab(68.39, -12.72, 58.16)
CIE-LCHlch(68.39, 59.53, 102.33°)
OKLaboklab(72.31% -0.0407 0.1296)
OKLCHoklch(72.31% 0.136 107.4)
XYZxyz(32.8859, 38.4979, 9.0660)
Luminance0.3850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB35 #3539AF
analogous
#AF6E35 #AFAB35 #76AF35
triadic
#AFAB35 #35AFAB #AB35AF
tetradic
#AFAB35 #35AF6E #3539AF #AF3576
square
#AFAB35 #35AF6E #3539AF #AF3576
split-complementary
#AFAB35 #3576AF #6E35AF
monochromatic
#514F19 #807D27 #AFAB35 #CCC856 #DAD785

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB35#FFFFFF#000000##000000
##AFAB351.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)
#B9A422
Deuteranopia (green-blind)
#BBA93D
Tritanopia (blue-blind)
#BCA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab35;
/* rgb */ color: rgb(175, 171, 53);
/* oklch */ color: oklch(72.3% 0.136 107.4);
Tailwind
colors: {
  custom: {
    50: '#cac374',
    500: '#afab35',
    950: '#000000',
  },
}
SCSS
$custom: #afab35;
$custom-light: #cac374;
$custom-dark: #000000;
JSON
{
  "hex": "#afab35",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 53
  },
  "hsl": {
    "h": 58.033,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.7231,
    "c": 0.13584,
    "h": 107.4
  },
  "luminance": 0.38497
}

Semantic roles & 50–950 ramp

primary
#AFAB35
secondary
#7C7FC4
accent
#50DD4B
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB35

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

Preview Lab → · Contrast checker → · Palette generator →

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