#A5B158#A5B158

#A5B158 is a light, moderate yellow. Relative luminance 0.401; OKLCH L 73.2% C 0.115 H 115.7°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#A5B158
RGBrgb(165, 177, 88)
HSLhsl(68, 36%, 52%)
HSVhsv(68, 50%, 69%)
CMYKcmyk(6.8%, 0%, 50.3%, 30.6%)
CIE-LABlab(69.58, -17.43, 43.70)
CIE-LCHlch(69.58, 47.05, 111.75°)
OKLaboklab(73.17% -0.0497 0.1036)
OKLCHoklch(73.17% 0.115 115.7)
XYZxyz(33.0011, 40.1486, 15.2416)
Luminance0.4015 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B158 #6458B1
analogous
#B19158 #A5B158 #79B158
triadic
#A5B158 #58A5B1 #B158A5
tetradic
#A5B158 #58B191 #6458B1 #B15879
square
#A5B158 #58B191 #6458B1 #B15879
split-complementary
#A5B158 #5879B1 #9158B1
monochromatic
#5A612D #818B41 #A5B158 #BBC482 #D2D8AB

Accessibility & contrast

On white

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

On black

9.03
#A5B158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B158
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B158#FFFFFF#000000##000000
##A5B1581.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA950
Deuteranopia (green-blind)
#BBAB5D
Tritanopia (blue-blind)
#AEA89D
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b158;
/* rgb */ color: rgb(165, 177, 88);
/* oklch */ color: oklch(73.2% 0.115 115.7);
Tailwind
colors: {
  custom: {
    50: '#c1c889',
    500: '#a5b158',
    950: '#000000',
  },
}
SCSS
$custom: #a5b158;
$custom-light: #c1c889;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b158",
  "rgb": {
    "r": 165,
    "g": 177,
    "b": 88
  },
  "hsl": {
    "h": 68.09,
    "s": 36.327,
    "l": 51.961
  },
  "oklch": {
    "l": 0.73166,
    "c": 0.11488,
    "h": 115.7
  },
  "luminance": 0.40148
}

Semantic roles & 50–950 ramp

primary
#A5B158
secondary
#A49FC6
accent
#5BCC6B
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#12130C
muted
#81827D

Preview Lab

Preview with #A5B158

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

Preview Lab → · Contrast checker → · Palette generator →

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