#AFAB55#AFAB55

#AFAB55 is a light, moderate yellow. Relative luminance 0.389; OKLCH L 72.6% C 0.109 H 106.4°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#AFAB55
RGBrgb(175, 171, 85)
HSLhsl(57, 36%, 51%)
HSVhsv(57, 51%, 69%)
CMYKcmyk(0%, 2.3%, 51.4%, 31.4%)
CIE-LABlab(68.68, -10.46, 44.30)
CIE-LCHlch(68.68, 45.51, 103.28°)
OKLaboklab(72.63% -0.0308 0.1044)
OKLCHoklch(72.63% 0.109 106.4)
XYZxyz(33.8827, 38.8966, 14.3155)
Luminance0.3890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB55 #5559AF
analogous
#AF7E55 #AFAB55 #86AF55
triadic
#AFAB55 #55AFAB #AB55AF
tetradic
#AFAB55 #55AF7E #5559AF #AF5586
square
#AFAB55 #55AF7E #5559AF #AF5586
split-complementary
#AFAB55 #5586AF #7E55AF
monochromatic
#5E5B2C #878440 #AFAB55 #C3C07F #D6D4A8

Accessibility & contrast

On white

2.39
#AFAB55 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#AFAB55 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB55
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB55#FFFFFF#000000##000000
##AFAB551.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A54D
Deuteranopia (green-blind)
#B9A959
Tritanopia (blue-blind)
#BAA297
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab55;
/* rgb */ color: rgb(175, 171, 85);
/* oklch */ color: oklch(72.6% 0.109 106.4);
Tailwind
colors: {
  custom: {
    50: '#c9c387',
    500: '#afab55',
    950: '#000000',
  },
}
SCSS
$custom: #afab55;
$custom-light: #c9c387;
$custom-dark: #000000;
JSON
{
  "hex": "#afab55",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 85
  },
  "hsl": {
    "h": 57.333,
    "s": 36,
    "l": 50.98
  },
  "oklch": {
    "l": 0.72634,
    "c": 0.10888,
    "h": 106.4
  },
  "luminance": 0.38896
}

Semantic roles & 50–950 ramp

primary
#AFAB55
secondary
#9C9EC4
accent
#61CC5C
background
#FCFBF8
surface
#F9F7F0
border
#D2D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAB55

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

Preview Lab → · Contrast checker → · Palette generator →

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