#AFB627#AFB627

#AFB627 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.7% C 0.155 H 112.5°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#AFB627
RGBrgb(175, 182, 39)
HSLhsl(63, 65%, 43%)
HSVhsv(63, 79%, 71%)
CMYKcmyk(3.8%, 0%, 78.6%, 28.6%)
CIE-LABlab(71.36, -18.95, 65.71)
CIE-LCHlch(71.36, 68.39, 106.09°)
OKLaboklab(74.66% -0.0594 0.1431)
OKLCHoklch(74.66% 0.155 112.5)
XYZxyz(34.7745, 42.7172, 8.3325)
Luminance0.4272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB627 #2E27B6
analogous
#B67527 #AFB627 #67B627
triadic
#AFB627 #27AFB6 #B627AF
tetradic
#AFB627 #27B675 #2E27B6 #B62767
square
#AFB627 #27B675 #2E27B6 #B62767
split-complementary
#AFB627 #2767B6 #7527B6
monochromatic
#4E5111 #7F841C #AFB627 #D0D743 #DCE276

Accessibility & contrast

On white

2.20
#AFB627 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#AFB627 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB627
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB627#FFFFFF#000000##000000
##AFB6271.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C5B034
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb627;
/* rgb */ color: rgb(175, 182, 39);
/* oklch */ color: oklch(74.7% 0.155 112.5);
Tailwind
colors: {
  custom: {
    50: '#cbcb6e',
    500: '#afb627',
    950: '#000000',
  },
}
SCSS
$custom: #afb627;
$custom-light: #cbcb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb627",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 39
  },
  "hsl": {
    "h": 62.937,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.74664,
    "c": 0.15492,
    "h": 112.5
  },
  "luminance": 0.42716
}

Semantic roles & 50–950 ramp

primary
#AFB627
secondary
#7470C9
accent
#40E848
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB627

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

Preview Lab → · Contrast checker → · Palette generator →

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