#AFB417#AFB417

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

Color values

HEX#AFB417
RGBrgb(175, 180, 23)
HSLhsl(62, 77%, 40%)
HSVhsv(62, 87%, 71%)
CMYKcmyk(2.8%, 0%, 87.2%, 29.4%)
CIE-LABlab(70.75, -18.43, 69.13)
CIE-LCHlch(70.75, 71.54, 104.93°)
OKLaboklab(74.15% -0.0589 0.1478)
OKLCHoklch(74.15% 0.159 111.7)
XYZxyz(34.1564, 41.8193, 7.0831)
Luminance0.4182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB417 #1C17B4
analogous
#B46B17 #AFB417 #60B417
triadic
#AFB417 #17AFB4 #B417AF
tetradic
#AFB417 #17B46B #1C17B4 #B41760
square
#AFB417 #17B46B #1C17B4 #B41760
split-complementary
#AFB417 #1760B4 #6B17B4
monochromatic
#454709 #7A7E10 #AFB417 #DDE325 #E6EA5B

Accessibility & contrast

On white

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

On black

9.36
#AFB417 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB417
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB417#FFFFFF#000000##000000
##AFB4171.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AB00
Deuteranopia (green-blind)
#C3AF2A
Tritanopia (blue-blind)
#BCA899
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb417;
/* rgb */ color: rgb(175, 180, 23);
/* oklch */ color: oklch(74.2% 0.159 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca68',
    500: '#afb417',
    950: '#000000',
  },
}
SCSS
$custom: #afb417;
$custom-light: #cbca68;
$custom-dark: #000000;
JSON
{
  "hex": "#afb417",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 23
  },
  "hsl": {
    "h": 61.911,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.74151,
    "c": 0.15909,
    "h": 111.7
  },
  "luminance": 0.41818
}

Semantic roles & 50–950 ramp

primary
#AFB417
secondary
#5D59CE
accent
#34F43A
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB417

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

Preview Lab → · Contrast checker → · Palette generator →

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