#A8B31F#A8B31F

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

Color values

HEX#A8B31F
RGBrgb(168, 179, 31)
HSLhsl(64, 70%, 41%)
HSVhsv(64, 83%, 70%)
CMYKcmyk(6.1%, 0%, 82.7%, 29.8%)
CIE-LABlab(69.94, -20.73, 66.44)
CIE-LCHlch(69.94, 69.60, 107.33°)
OKLaboklab(73.38% -0.0645 0.1435)
OKLCHoklch(73.38% 0.157 114.2)
XYZxyz(32.5169, 40.6646, 7.4322)
Luminance0.4066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B31F #2A1FB3
analogous
#B3741F #A8B31F #5EB31F
triadic
#A8B31F #1FA8B3 #B31FA8
tetradic
#A8B31F #1FB374 #2A1FB3 #B31F5E
square
#A8B31F #1FB374 #2A1FB3 #B31F5E
split-complementary
#A8B31F #1F5EB3 #741FB3
monochromatic
#464B0D #777F16 #A8B31F #CFDC33 #DBE568

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #a8b31f;
/* rgb */ color: rgb(168, 179, 31);
/* oklch */ color: oklch(73.4% 0.157 114.2);
Tailwind
colors: {
  custom: {
    50: '#c6c96b',
    500: '#a8b31f',
    950: '#000000',
  },
}
SCSS
$custom: #a8b31f;
$custom-light: #c6c96b;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b31f",
  "rgb": {
    "r": 168,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 64.459,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73378,
    "c": 0.15736,
    "h": 114.2
  },
  "luminance": 0.40664
}

Semantic roles & 50–950 ramp

primary
#A8B31F
secondary
#6B64CA
accent
#3BED48
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A8B31F

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

Preview Lab → · Contrast checker → · Palette generator →

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