#A8B317#A8B317

#A8B317 is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.3% C 0.160 H 114.2°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#A8B317
RGBrgb(168, 179, 23)
HSLhsl(64, 77%, 40%)
HSVhsv(64, 87%, 70%)
CMYKcmyk(6.1%, 0%, 87.2%, 29.8%)
CIE-LABlab(69.91, -20.95, 68.22)
CIE-LCHlch(69.91, 71.37, 107.07°)
OKLaboklab(73.35% -0.0656 0.1461)
OKLCHoklch(73.35% 0.16 114.2)
XYZxyz(32.4243, 40.6276, 6.9443)
Luminance0.4063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B317 #2217B3
analogous
#B37017 #A8B317 #5AB317
triadic
#A8B317 #17A8B3 #B317A8
tetradic
#A8B317 #17B370 #2217B3 #B3175A
square
#A8B317 #17B370 #2217B3 #B3175A
split-complementary
#A8B317 #175AB3 #7017B3
monochromatic
#424709 #757D10 #A8B317 #D5E324 #E0EA5B

Accessibility & contrast

On white

2.30
#A8B317 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#A8B317 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B317
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B317#FFFFFF#000000##000000
##A8B3171.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C0AC2A
Tritanopia (blue-blind)
#B4A898
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a8b317;
/* rgb */ color: rgb(168, 179, 23);
/* oklch */ color: oklch(73.3% 0.160 114.2);
Tailwind
colors: {
  custom: {
    50: '#c6c968',
    500: '#a8b317',
    950: '#000000',
  },
}
SCSS
$custom: #a8b317;
$custom-light: #c6c968;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b317",
  "rgb": {
    "r": 168,
    "g": 179,
    "b": 23
  },
  "hsl": {
    "h": 64.231,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.73349,
    "c": 0.16015,
    "h": 114.2
  },
  "luminance": 0.40627
}

Semantic roles & 50–950 ramp

primary
#A8B317
secondary
#6158CD
accent
#34F442
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A

Preview Lab

Preview with #A8B317

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

Preview Lab → · Contrast checker → · Palette generator →

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