#AFB317#AFB317

#AFB317 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 73.9% C 0.158 H 111.3°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#AFB317
RGBrgb(175, 179, 23)
HSLhsl(62, 77%, 40%)
HSVhsv(62, 87%, 70%)
CMYKcmyk(2.2%, 0%, 87.2%, 29.8%)
CIE-LABlab(70.47, -17.92, 68.90)
CIE-LCHlch(70.47, 71.19, 104.58°)
OKLaboklab(73.93% -0.0576 0.1473)
OKLCHoklch(73.93% 0.158 111.3)
XYZxyz(33.9552, 41.4170, 7.0161)
Luminance0.4142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB317 #1B17B3
analogous
#B36917 #AFB317 #61B317
triadic
#AFB317 #17AFB3 #B317AF
tetradic
#AFB317 #17B369 #1B17B3 #B31761
square
#AFB317 #17B369 #1B17B3 #B31761
split-complementary
#AFB317 #1761B3 #6917B3
monochromatic
#454709 #7A7D10 #AFB317 #DEE324 #E6EA5B

Accessibility & contrast

On white

2.26
#AFB317 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#AFB317 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB317
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB317#FFFFFF#000000##000000
##AFB3171.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AA00
Deuteranopia (green-blind)
#C3AE29
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb317;
/* rgb */ color: rgb(175, 179, 23);
/* oklch */ color: oklch(73.9% 0.158 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc968',
    500: '#afb317',
    950: '#000000',
  },
}
SCSS
$custom: #afb317;
$custom-light: #cbc968;
$custom-dark: #000000;
JSON
{
  "hex": "#afb317",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 23
  },
  "hsl": {
    "h": 61.538,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.73928,
    "c": 0.15812,
    "h": 111.3
  },
  "luminance": 0.41416
}

Semantic roles & 50–950 ramp

primary
#AFB317
secondary
#5B58CD
accent
#34F439
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB317

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

Preview Lab → · Contrast checker → · Palette generator →

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