#AFAB45#AFAB45

#AFAB45 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.124 H 107.0°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#AFAB45
RGBrgb(175, 171, 69)
HSLhsl(58, 43%, 48%)
HSVhsv(58, 61%, 69%)
CMYKcmyk(0%, 2.3%, 60.6%, 31.4%)
CIE-LABlab(68.51, -11.73, 51.62)
CIE-LCHlch(68.51, 52.93, 102.80°)
OKLaboklab(72.45% -0.0362 0.1183)
OKLCHoklch(72.45% 0.124 107)
XYZxyz(33.3174, 38.6705, 11.3382)
Luminance0.3867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB45 #4549AF
analogous
#AF7645 #AFAB45 #7EAF45
triadic
#AFAB45 #45AFAB #AB45AF
tetradic
#AFAB45 #45AF76 #4549AF #AF457E
square
#AFAB45 #45AF76 #4549AF #AF457E
split-complementary
#AFAB45 #457EAF #7645AF
monochromatic
#575522 #838034 #AFAB45 #C5C26C #D6D498

Accessibility & contrast

On white

2.40
#AFAB45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#AFAB45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB45
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB45#FFFFFF#000000##000000
##AFAB451.002.408.738.73
#FFFFFF2.401.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A539
Deuteranopia (green-blind)
#BBA94B
Tritanopia (blue-blind)
#BBA195
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab45;
/* rgb */ color: rgb(175, 171, 69);
/* oklch */ color: oklch(72.5% 0.124 107.0);
Tailwind
colors: {
  custom: {
    50: '#c9c37d',
    500: '#afab45',
    950: '#000000',
  },
}
SCSS
$custom: #afab45;
$custom-light: #c9c37d;
$custom-dark: #000000;
JSON
{
  "hex": "#afab45",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 69
  },
  "hsl": {
    "h": 57.736,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.7245,
    "c": 0.1237,
    "h": 107
  },
  "luminance": 0.38669
}

Semantic roles & 50–950 ramp

primary
#AFAB45
secondary
#8D8FC2
accent
#59D355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAB45

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

Preview Lab → · Contrast checker → · Palette generator →

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