#A8B151#A8B151

#A8B151 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.3% C 0.121 H 113.8°. Best body text is #000000 at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#A8B151
RGBrgb(168, 177, 81)
HSLhsl(66, 38%, 51%)
HSVhsv(66, 54%, 69%)
CMYKcmyk(5.1%, 0%, 54.2%, 30.6%)
CIE-LABlab(69.73, -16.83, 47.30)
CIE-LCHlch(69.73, 50.21, 109.59°)
OKLaboklab(73.32% -0.0489 0.1107)
OKLCHoklch(73.32% 0.121 113.8)
XYZxyz(33.3564, 40.3637, 13.8168)
Luminance0.4036 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B151 #5A51B1
analogous
#B18A51 #A8B151 #78B151
triadic
#A8B151 #51A8B1 #B151A8
tetradic
#A8B151 #51B18A #5A51B1 #B15178
square
#A8B151 #51B18A #5A51B1 #B15178
split-complementary
#A8B151 #5178B1 #8A51B1
monochromatic
#595E2A #81883D #A8B151 #BDC47B #D2D7A6

Accessibility & contrast

On white

2.31
#A8B151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.07
#A8B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B151
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B151#FFFFFF#000000##000000
##A8B1511.002.319.079.07
#FFFFFF2.311.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA947
Deuteranopia (green-blind)
#BCAB56
Tritanopia (blue-blind)
#B2A89C
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a8b151;
/* rgb */ color: rgb(168, 177, 81);
/* oklch */ color: oklch(73.3% 0.121 113.8);
Tailwind
colors: {
  custom: {
    50: '#c4c885',
    500: '#a8b151',
    950: '#000000',
  },
}
SCSS
$custom: #a8b151;
$custom-light: #c4c885;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b151",
  "rgb": {
    "r": 168,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 65.625,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.7332,
    "c": 0.121,
    "h": 113.8
  },
  "luminance": 0.40363
}

Semantic roles & 50–950 ramp

primary
#A8B151
secondary
#9E9AC4
accent
#5ACE65
background
#FCFCF8
surface
#F8F8EF
border
#D1D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #A8B151

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

Preview Lab → · Contrast checker → · Palette generator →

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