#A8B31E#A8B31E

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

Color values

HEX#A8B31E
RGBrgb(168, 179, 30)
HSLhsl(64, 71%, 41%)
HSVhsv(64, 83%, 70%)
CMYKcmyk(6.1%, 0%, 83.2%, 29.8%)
CIE-LABlab(69.94, -20.76, 66.68)
CIE-LCHlch(69.94, 69.84, 107.30°)
OKLaboklab(73.37% -0.0646 0.1439)
OKLCHoklch(73.37% 0.158 114.2)
XYZxyz(32.5039, 40.6594, 7.3639)
Luminance0.4066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B31E #291EB3
analogous
#B3741E #A8B31E #5DB31E
triadic
#A8B31E #1EA8B3 #B31EA8
tetradic
#A8B31E #1EB374 #291EB3 #B31E5D
square
#A8B31E #1EB374 #291EB3 #B31E5D
split-complementary
#A8B31E #1E5DB3 #741EB3
monochromatic
#464A0C #777F15 #A8B31E #D0DD32 #DCE566

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8B31E#FFFFFF#000000##000000
##A8B31E1.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)
#C0AC2E
Tritanopia (blue-blind)
#B4A899
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a8b31e;
/* rgb */ color: rgb(168, 179, 30);
/* oklch */ color: oklch(73.4% 0.158 114.2);
Tailwind
colors: {
  custom: {
    50: '#c6c96a',
    500: '#a8b31e',
    950: '#000000',
  },
}
SCSS
$custom: #a8b31e;
$custom-light: #c6c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b31e",
  "rgb": {
    "r": 168,
    "g": 179,
    "b": 30
  },
  "hsl": {
    "h": 64.43,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.73374,
    "c": 0.15775,
    "h": 114.2
  },
  "luminance": 0.40659
}

Semantic roles & 50–950 ramp

primary
#A8B31E
secondary
#6A62CB
accent
#3AEE47
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A8B31E

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

Preview Lab → · Contrast checker → · Palette generator →

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