#AFAB23#AFAB23

#AFAB23 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.146 H 107.8°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#AFAB23
RGBrgb(175, 171, 35)
HSLhsl(58, 67%, 41%)
HSVhsv(58, 80%, 69%)
CMYKcmyk(0%, 2.3%, 80%, 31.4%)
CIE-LABlab(68.29, -13.50, 64.15)
CIE-LCHlch(68.29, 65.55, 101.88°)
OKLaboklab(72.2% -0.0445 0.139)
OKLCHoklch(72.2% 0.146 107.8)
XYZxyz(32.5468, 38.3623, 7.2800)
Luminance0.3836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB23 #2327AF
analogous
#AF6523 #AFAB23 #6DAF23
triadic
#AFAB23 #23AFAB #AB23AF
tetradic
#AFAB23 #23AF65 #2327AF #AF236D
square
#AFAB23 #23AF65 #2327AF #AF236D
split-complementary
#AFAB23 #236DAF #6523AF
monochromatic
#49470F #7C7919 #AFAB23 #D7D338 #E1DE6B

Accessibility & contrast

On white

2.42
#AFAB23 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#AFAB23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB23
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB23#FFFFFF#000000##000000
##AFAB231.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BCA92F
Tritanopia (blue-blind)
#BC9F92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afab23;
/* rgb */ color: rgb(175, 171, 35);
/* oklch */ color: oklch(72.2% 0.146 107.8);
Tailwind
colors: {
  custom: {
    50: '#cbc36b',
    500: '#afab23',
    950: '#000000',
  },
}
SCSS
$custom: #afab23;
$custom-light: #cbc36b;
$custom-dark: #000000;
JSON
{
  "hex": "#afab23",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 35
  },
  "hsl": {
    "h": 58.286,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.72199,
    "c": 0.14597,
    "h": 107.8
  },
  "luminance": 0.38361
}

Semantic roles & 50–950 ramp

primary
#AFAB23
secondary
#6669C7
accent
#43EA3E
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAB23

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

Preview Lab → · Contrast checker → · Palette generator →

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