#A5B22F#A5B22F

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

Color values

HEX#A5B22F
RGBrgb(165, 178, 47)
HSLhsl(66, 58%, 44%)
HSVhsv(66, 74%, 70%)
CMYKcmyk(7.3%, 0%, 73.6%, 30.2%)
CIE-LABlab(69.50, -20.88, 61.16)
CIE-LCHlch(69.50, 64.63, 108.85°)
OKLaboklab(72.99% -0.0635 0.1352)
OKLCHoklch(72.99% 0.149 115.2)
XYZxyz(31.9514, 40.0459, 8.7352)
Luminance0.4004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B22F #3C2FB2
analogous
#B27E2F #A5B22F #64B22F
triadic
#A5B22F #2FA5B2 #B22FA5
tetradic
#A5B22F #2FB27E #3C2FB2 #B22F64
square
#A5B22F #2FB27E #3C2FB2 #B22F64
split-complementary
#A5B22F #2F64B2 #7E2FB2
monochromatic
#4B5115 #788222 #A5B22F #C3D04E #D4DD7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5B22F#FFFFFF#000000##000000
##A5B22F1.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)
#BFA914
Deuteranopia (green-blind)
#BEAB3A
Tritanopia (blue-blind)
#B0A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b22f;
/* rgb */ color: rgb(165, 178, 47);
/* oklch */ color: oklch(73.0% 0.149 115.2);
Tailwind
colors: {
  custom: {
    50: '#c3c871',
    500: '#a5b22f',
    950: '#000000',
  },
}
SCSS
$custom: #a5b22f;
$custom-light: #c3c871;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b22f",
  "rgb": {
    "r": 165,
    "g": 178,
    "b": 47
  },
  "hsl": {
    "h": 65.954,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72993,
    "c": 0.14939,
    "h": 115.2
  },
  "luminance": 0.40045
}

Semantic roles & 50–950 ramp

primary
#A5B22F
secondary
#7F77C6
accent
#46E156
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5B22F

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

Preview Lab → · Contrast checker → · Palette generator →

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