#A5B22B#A5B22B

#A5B22B is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.0% C 0.152 H 115.1°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#A5B22B
RGBrgb(165, 178, 43)
HSLhsl(66, 61%, 43%)
HSVhsv(66, 76%, 70%)
CMYKcmyk(7.3%, 0%, 75.8%, 30.2%)
CIE-LABlab(69.48, -21.07, 62.48)
CIE-LCHlch(69.48, 65.93, 108.64°)
OKLaboklab(72.97% -0.0644 0.1373)
OKLCHoklch(72.97% 0.152 115.1)
XYZxyz(31.8744, 40.0151, 8.3296)
Luminance0.4002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B22B #382BB2
analogous
#B27B2B #A5B22B #61B22B
triadic
#A5B22B #2BA5B2 #B22BA5
tetradic
#A5B22B #2BB27B #382BB2 #B22B61
square
#A5B22B #2BB27B #382BB2 #B22B61
split-complementary
#A5B22B #2B61B2 #7B2BB2
monochromatic
#4A4F13 #77811F #A5B22B #C5D348 #D5DF79

Accessibility & contrast

On white

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

On black

9.00
#A5B22B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B22B
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B22B#FFFFFF#000000##000000
##A5B22B1.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA908
Deuteranopia (green-blind)
#BEAB37
Tritanopia (blue-blind)
#B0A799
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b22b;
/* rgb */ color: rgb(165, 178, 43);
/* oklch */ color: oklch(73.0% 0.152 115.1);
Tailwind
colors: {
  custom: {
    50: '#c3c86f',
    500: '#a5b22b',
    950: '#000000',
  },
}
SCSS
$custom: #a5b22b;
$custom-light: #c3c86f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b22b",
  "rgb": {
    "r": 165,
    "g": 178,
    "b": 43
  },
  "hsl": {
    "h": 65.778,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.72969,
    "c": 0.15164,
    "h": 115.1
  },
  "luminance": 0.40015
}

Semantic roles & 50–950 ramp

primary
#A5B22B
secondary
#7A72C7
accent
#44E453
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5B22B

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

Preview Lab → · Contrast checker → · Palette generator →

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