#A8B531#A8B531

#A8B531 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 73.9% C 0.151 H 115.1°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#A8B531
RGBrgb(168, 181, 49)
HSLhsl(66, 57%, 45%)
HSVhsv(66, 73%, 71%)
CMYKcmyk(7.2%, 0%, 72.9%, 29%)
CIE-LABlab(70.59, -21.01, 61.59)
CIE-LCHlch(70.59, 65.07, 108.84°)
OKLaboklab(73.93% -0.0638 0.1364)
OKLCHoklch(73.93% 0.151 115.1)
XYZxyz(33.2276, 41.5949, 9.1834)
Luminance0.4159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B531 #3E31B5
analogous
#B58031 #A8B531 #66B531
triadic
#A8B531 #31A8B5 #B531A8
tetradic
#A8B531 #31B580 #3E31B5 #B53166
square
#A8B531 #31B580 #3E31B5 #B53166
split-complementary
#A8B531 #3166B5 #8031B5
monochromatic
#4F5517 #7B8524 #A8B531 #C4D053 #D5DD83

Accessibility & contrast

On white

2.25
#A8B531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#A8B531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B531
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B531#FFFFFF#000000##000000
##A8B5311.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC17
Deuteranopia (green-blind)
#C1AE3C
Tritanopia (blue-blind)
#B3AA9C
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #a8b531;
/* rgb */ color: rgb(168, 181, 49);
/* oklch */ color: oklch(73.9% 0.151 115.1);
Tailwind
colors: {
  custom: {
    50: '#c5cb73',
    500: '#a8b531',
    950: '#000000',
  },
}
SCSS
$custom: #a8b531;
$custom-light: #c5cb73;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b531",
  "rgb": {
    "r": 168,
    "g": 181,
    "b": 49
  },
  "hsl": {
    "h": 65.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73927,
    "c": 0.15057,
    "h": 115.1
  },
  "luminance": 0.41594
}

Semantic roles & 50–950 ramp

primary
#A8B531
secondary
#837BC7
accent
#47E156
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A8B531

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

Preview Lab → · Contrast checker → · Palette generator →

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