#A8B417#A8B417

#A8B417 is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.6% C 0.161 H 114.5°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#A8B417
RGBrgb(168, 180, 23)
HSLhsl(65, 77%, 40%)
HSVhsv(65, 87%, 71%)
CMYKcmyk(6.7%, 0%, 87.2%, 29.4%)
CIE-LABlab(70.20, -21.45, 68.45)
CIE-LCHlch(70.20, 71.73, 107.40°)
OKLaboklab(73.58% -0.0669 0.1466)
OKLCHoklch(73.58% 0.161 114.5)
XYZxyz(32.6254, 41.0299, 7.0113)
Luminance0.4103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B417 #2317B4
analogous
#B47217 #A8B417 #5AB417
triadic
#A8B417 #17A8B4 #B417A8
tetradic
#A8B417 #17B472 #2317B4 #B4175A
square
#A8B417 #17B472 #2317B4 #B4175A
split-complementary
#A8B417 #175AB4 #7217B4
monochromatic
#434709 #757E10 #A8B417 #D5E325 #DFEA5B

Accessibility & contrast

On white

2.28
#A8B417 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#A8B417 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B417
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B417#FFFFFF#000000##000000
##A8B4171.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8b417;
/* rgb */ color: rgb(168, 180, 23);
/* oklch */ color: oklch(73.6% 0.161 114.5);
Tailwind
colors: {
  custom: {
    50: '#c6ca68',
    500: '#a8b417',
    950: '#000000',
  },
}
SCSS
$custom: #a8b417;
$custom-light: #c6ca68;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b417",
  "rgb": {
    "r": 168,
    "g": 180,
    "b": 23
  },
  "hsl": {
    "h": 64.586,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.73576,
    "c": 0.16118,
    "h": 114.5
  },
  "luminance": 0.41029
}

Semantic roles & 50–950 ramp

primary
#A8B417
secondary
#6259CE
accent
#34F443
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A

Preview Lab

Preview with #A8B417

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

Preview Lab → · Contrast checker → · Palette generator →

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