#A5B151#A5B151

#A5B151 is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.1% C 0.122 H 115.4°. Best body text is #000000 at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#A5B151
RGBrgb(165, 177, 81)
HSLhsl(68, 38%, 51%)
HSVhsv(68, 54%, 69%)
CMYKcmyk(6.8%, 0%, 54.2%, 30.6%)
CIE-LABlab(69.50, -18.08, 46.98)
CIE-LCHlch(69.50, 50.34, 111.05°)
OKLaboklab(73.08% -0.0522 0.11)
OKLCHoklch(73.08% 0.122 115.4)
XYZxyz(32.7250, 40.0381, 13.7872)
Luminance0.4004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B151 #5D51B1
analogous
#B18D51 #A5B151 #75B151
triadic
#A5B151 #51A5B1 #B151A5
tetradic
#A5B151 #51B18D #5D51B1 #B15175
square
#A5B151 #51B18D #5D51B1 #B15175
split-complementary
#A5B151 #5175B1 #8D51B1
monochromatic
#575E2A #7F883D #A5B151 #BBC47B #D1D7A6

Accessibility & contrast

On white

2.33
#A5B151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.01
#A5B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B151
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B151#FFFFFF#000000##000000
##A5B1511.002.339.019.01
#FFFFFF2.331.0021.0021.00
#0000009.0121.001.001.00
##0000009.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA948
Deuteranopia (green-blind)
#BBAB56
Tritanopia (blue-blind)
#AEA89C
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b151;
/* rgb */ color: rgb(165, 177, 81);
/* oklch */ color: oklch(73.1% 0.122 115.4);
Tailwind
colors: {
  custom: {
    50: '#c2c885',
    500: '#a5b151',
    950: '#000000',
  },
}
SCSS
$custom: #a5b151;
$custom-light: #c2c885;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b151",
  "rgb": {
    "r": 165,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 67.5,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.73077,
    "c": 0.12178,
    "h": 115.4
  },
  "luminance": 0.40038
}

Semantic roles & 50–950 ramp

primary
#A5B151
secondary
#9F9AC4
accent
#5ACE68
background
#FCFCF8
surface
#F8F8EF
border
#D1D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #A5B151

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

Preview Lab → · Contrast checker → · Palette generator →

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