#A8B31B#A8B31B

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

Color values

HEX#A8B31B
RGBrgb(168, 179, 27)
HSLhsl(64, 74%, 40%)
HSVhsv(64, 85%, 70%)
CMYKcmyk(6.1%, 0%, 84.9%, 29.8%)
CIE-LABlab(69.93, -20.85, 67.38)
CIE-LCHlch(69.93, 70.53, 107.20°)
OKLaboklab(73.36% -0.0651 0.1449)
OKLCHoklch(73.36% 0.159 114.2)
XYZxyz(32.4674, 40.6448, 7.1716)
Luminance0.4064 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B31B #261BB3
analogous
#B3721B #A8B31B #5CB31B
triadic
#A8B31B #1BA8B3 #B31BA8
tetradic
#A8B31B #1BB372 #261BB3 #B31B5C
square
#A8B31B #1BB372 #261BB3 #B31B5C
split-complementary
#A8B31B #1B5CB3 #721BB3
monochromatic
#44490B #767E13 #A8B31B #D2DF2C #DEE761

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #a8b31b;
/* rgb */ color: rgb(168, 179, 27);
/* oklch */ color: oklch(73.4% 0.159 114.2);
Tailwind
colors: {
  custom: {
    50: '#c6c969',
    500: '#a8b31b',
    950: '#000000',
  },
}
SCSS
$custom: #a8b31b;
$custom-light: #c6c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b31b",
  "rgb": {
    "r": 168,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 64.342,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.73362,
    "c": 0.15884,
    "h": 114.2
  },
  "luminance": 0.40644
}

Semantic roles & 50–950 ramp

primary
#A8B31B
secondary
#665ECC
accent
#37F045
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A

Preview Lab

Preview with #A8B31B

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

Preview Lab → · Contrast checker → · Palette generator →

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