#AFBD27#AFBD27

#AFBD27 is a light, vivid yellow. Relative luminance 0.457; OKLCH L 76.2% C 0.162 H 115.2°. Best body text is #000000 at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#AFBD27
RGBrgb(175, 189, 39)
HSLhsl(66, 66%, 45%)
HSVhsv(66, 79%, 74%)
CMYKcmyk(7.4%, 0%, 79.4%, 25.9%)
CIE-LABlab(73.32, -22.43, 67.46)
CIE-LCHlch(73.32, 71.09, 108.39°)
OKLaboklab(76.24% -0.069 0.1468)
OKLCHoklch(76.24% 0.162 115.2)
XYZxyz(36.2441, 45.6563, 8.8223)
Luminance0.4566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBD27 #3527BD
analogous
#BD8027 #AFBD27 #64BD27
triadic
#AFBD27 #27AFBD #BD27AF
tetradic
#AFBD27 #27BD80 #3527BD #BD2764
square
#AFBD27 #27BD80 #3527BD #BD2764
split-complementary
#AFBD27 #2764BD #8027BD
monochromatic
#515812 #808A1D #AFBD27 #CCD948 #DAE47B

Accessibility & contrast

On white

2.07
#AFBD27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.13
#AFBD27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBD27
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBD27#FFFFFF#000000##000000
##AFBD271.002.0710.1310.13
#FFFFFF2.071.0021.0021.00
#00000010.1321.001.001.00
##00000010.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB300
Deuteranopia (green-blind)
#CAB536
Tritanopia (blue-blind)
#BBB2A2
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbd27;
/* rgb */ color: rgb(175, 189, 39);
/* oklch */ color: oklch(76.2% 0.162 115.2);
Tailwind
colors: {
  custom: {
    50: '#cbd06f',
    500: '#afbd27',
    950: '#000000',
  },
}
SCSS
$custom: #afbd27;
$custom-light: #cbd06f;
$custom-dark: #000000;
JSON
{
  "hex": "#afbd27",
  "rgb": {
    "r": 175,
    "g": 189,
    "b": 39
  },
  "hsl": {
    "h": 65.6,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.76235,
    "c": 0.16222,
    "h": 115.2
  },
  "luminance": 0.45656
}

Semantic roles & 50–950 ramp

primary
#AFBD27
secondary
#7C74CC
accent
#3FE94F
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B

Preview Lab

Preview with #AFBD27

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

Preview Lab → · Contrast checker → · Palette generator →

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