#A5B142#A5B142

#A5B142 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 72.9% C 0.135 H 115.0°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#A5B142
RGBrgb(165, 177, 66)
HSLhsl(66, 46%, 48%)
HSVhsv(66, 63%, 69%)
CMYKcmyk(6.8%, 0%, 62.7%, 30.6%)
CIE-LABlab(69.35, -19.26, 53.61)
CIE-LCHlch(69.35, 56.96, 109.76°)
OKLaboklab(72.92% -0.0571 0.1223)
OKLCHoklch(72.92% 0.135 115)
XYZxyz(32.2233, 39.8375, 11.1451)
Luminance0.3984 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B142 #4E42B1
analogous
#B18542 #A5B142 #6EB142
triadic
#A5B142 #42A5B1 #B142A5
tetradic
#A5B142 #42B185 #4E42B1 #B1426E
square
#A5B142 #42B185 #4E42B1 #B1426E
split-complementary
#A5B142 #426EB1 #8542B1
monochromatic
#525821 #7B8431 #A5B142 #BDC769 #D1D896

Accessibility & contrast

On white

2.34
#A5B142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#A5B142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B142
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B142#FFFFFF#000000##000000
##A5B1421.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA934
Deuteranopia (green-blind)
#BCAA49
Tritanopia (blue-blind)
#AFA79A
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a5b142;
/* rgb */ color: rgb(165, 177, 66);
/* oklch */ color: oklch(72.9% 0.135 115.0);
Tailwind
colors: {
  custom: {
    50: '#c2c87b',
    500: '#a5b142',
    950: '#000000',
  },
}
SCSS
$custom: #a5b142;
$custom-light: #c2c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b142",
  "rgb": {
    "r": 165,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 66.486,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.72917,
    "c": 0.135,
    "h": 115
  },
  "luminance": 0.39837
}

Semantic roles & 50–950 ramp

primary
#A5B142
secondary
#918BC3
accent
#52D561
background
#FCFCF7
surface
#F8F8EE
border
#D1D1C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A5B142

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

Preview Lab → · Contrast checker → · Palette generator →

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