#AFAB27#AFAB27

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

Color values

HEX#AFAB27
RGBrgb(175, 171, 39)
HSLhsl(58, 64%, 42%)
HSVhsv(58, 78%, 69%)
CMYKcmyk(0%, 2.3%, 77.7%, 31.4%)
CIE-LABlab(68.31, -13.35, 62.97)
CIE-LCHlch(68.31, 64.37, 101.97°)
OKLaboklab(72.22% -0.0438 0.1372)
OKLCHoklch(72.22% 0.144 107.7)
XYZxyz(32.6096, 38.3874, 7.6108)
Luminance0.3839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB27 #272BAF
analogous
#AF6727 #AFAB27 #6FAF27
triadic
#AFAB27 #27AFAB #AB27AF
tetradic
#AFAB27 #27AF67 #272BAF #AF276F
square
#AFAB27 #27AF67 #272BAF #AF276F
split-complementary
#AFAB27 #276FAF #6727AF
monochromatic
#4B4911 #7D7A1C #AFAB27 #D4D03F #DFDC71

Accessibility & contrast

On white

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

On black

8.68
#AFAB27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB27
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB27#FFFFFF#000000##000000
##AFAB271.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afab27;
/* rgb */ color: rgb(175, 171, 39);
/* oklch */ color: oklch(72.2% 0.144 107.7);
Tailwind
colors: {
  custom: {
    50: '#cbc36d',
    500: '#afab27',
    950: '#000000',
  },
}
SCSS
$custom: #afab27;
$custom-light: #cbc36d;
$custom-dark: #000000;
JSON
{
  "hex": "#afab27",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 39
  },
  "hsl": {
    "h": 58.235,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.72219,
    "c": 0.14405,
    "h": 107.7
  },
  "luminance": 0.38386
}

Semantic roles & 50–950 ramp

primary
#AFAB27
secondary
#6B6EC6
accent
#46E741
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB27

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

Preview Lab → · Contrast checker → · Palette generator →

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