#A8B31D#A8B31D

#A8B31D 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#A8B31D
RGBrgb(168, 179, 29)
HSLhsl(64, 72%, 41%)
HSVhsv(64, 84%, 70%)
CMYKcmyk(6.1%, 0%, 83.8%, 29.8%)
CIE-LABlab(69.93, -20.79, 66.92)
CIE-LCHlch(69.93, 70.08, 107.26°)
OKLaboklab(73.37% -0.0648 0.1442)
OKLCHoklch(73.37% 0.158 114.2)
XYZxyz(32.4914, 40.6544, 7.2977)
Luminance0.4065 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B31D #281DB3
analogous
#B3731D #A8B31D #5DB31D
triadic
#A8B31D #1DA8B3 #B31DA8
tetradic
#A8B31D #1DB373 #281DB3 #B31D5D
square
#A8B31D #1DB373 #281DB3 #B31D5D
split-complementary
#A8B31D #1D5DB3 #731DB3
monochromatic
#454A0C #777E14 #A8B31D #D1DD30 #DCE664

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #a8b31d;
/* rgb */ color: rgb(168, 179, 29);
/* oklch */ color: oklch(73.4% 0.158 114.2);
Tailwind
colors: {
  custom: {
    50: '#c6c96a',
    500: '#a8b31d',
    950: '#000000',
  },
}
SCSS
$custom: #a8b31d;
$custom-light: #c6c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b31d",
  "rgb": {
    "r": 168,
    "g": 179,
    "b": 29
  },
  "hsl": {
    "h": 64.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.7337,
    "c": 0.15813,
    "h": 114.2
  },
  "luminance": 0.40654
}

Semantic roles & 50–950 ramp

primary
#A8B31D
secondary
#6961CB
accent
#39EF46
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A8B31D

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

Preview Lab → · Contrast checker → · Palette generator →

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