#AFB427#AFB427

#AFB427 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.2% C 0.153 H 111.7°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#AFB427
RGBrgb(175, 180, 39)
HSLhsl(62, 64%, 43%)
HSVhsv(62, 78%, 71%)
CMYKcmyk(2.8%, 0%, 78.3%, 29.4%)
CIE-LABlab(70.80, -17.95, 65.21)
CIE-LCHlch(70.80, 67.64, 105.39°)
OKLaboklab(74.22% -0.0566 0.142)
OKLCHoklch(74.22% 0.153 111.7)
XYZxyz(34.3679, 41.9039, 8.1969)
Luminance0.4190 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB427 #2C27B4
analogous
#B47327 #AFB427 #68B427
triadic
#AFB427 #27AFB4 #B427AF
tetradic
#AFB427 #27B473 #2C27B4 #B42768
square
#AFB427 #27B473 #2C27B4 #B42768
split-complementary
#AFB427 #2768B4 #7327B4
monochromatic
#4D4F11 #7E821C #AFB427 #D1D642 #DDE174

Accessibility & contrast

On white

2.24
#AFB427 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#AFB427 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB427
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB427#FFFFFF#000000##000000
##AFB4271.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC00
Deuteranopia (green-blind)
#C3AF34
Tritanopia (blue-blind)
#BBA99A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb427;
/* rgb */ color: rgb(175, 180, 39);
/* oklch */ color: oklch(74.2% 0.153 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca6e',
    500: '#afb427',
    950: '#000000',
  },
}
SCSS
$custom: #afb427;
$custom-light: #cbca6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb427",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 39
  },
  "hsl": {
    "h": 62.128,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.74217,
    "c": 0.15288,
    "h": 111.7
  },
  "luminance": 0.41903
}

Semantic roles & 50–950 ramp

primary
#AFB427
secondary
#726FC8
accent
#40E746
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB427

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

Preview Lab → · Contrast checker → · Palette generator →

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