#A5BA2A#A5BA2A

#A5BA2A is a light, vivid yellow. Relative luminance 0.433; OKLCH L 74.8% C 0.161 H 117.9°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#A5BA2A
RGBrgb(165, 186, 42)
HSLhsl(69, 63%, 45%)
HSVhsv(69, 77%, 73%)
CMYKcmyk(11.3%, 0%, 77.4%, 27.1%)
CIE-LABlab(71.75, -25.05, 64.88)
CIE-LCHlch(71.75, 69.55, 111.11°)
OKLaboklab(74.79% -0.0754 0.1422)
OKLCHoklch(74.79% 0.161 117.9)
XYZxyz(33.4947, 43.2846, 8.7803)
Luminance0.4328 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5BA2A #3F2ABA
analogous
#BA872A #A5BA2A #5DBA2A
triadic
#A5BA2A #2AA5BA #BA2AA5
tetradic
#A5BA2A #2ABA87 #3F2ABA #BA2A5D
square
#A5BA2A #2ABA87 #3F2ABA #BA2A5D
split-complementary
#A5BA2A #2A5DBA #872ABA
monochromatic
#4C5613 #79881F #A5BA2A #C2D64B #D3E27D

Accessibility & contrast

On white

2.17
#A5BA2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#A5BA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5BA2A
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5BA2A#FFFFFF#000000##000000
##A5BA2A1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B000
Deuteranopia (green-blind)
#C5B038
Tritanopia (blue-blind)
#AFAF9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #a5ba2a;
/* rgb */ color: rgb(165, 186, 42);
/* oklch */ color: oklch(74.8% 0.161 117.9);
Tailwind
colors: {
  custom: {
    50: '#c3ce70',
    500: '#a5ba2a',
    950: '#000000',
  },
}
SCSS
$custom: #a5ba2a;
$custom-light: #c3ce70;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ba2a",
  "rgb": {
    "r": 165,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 68.75,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74789,
    "c": 0.16099,
    "h": 117.9
  },
  "luminance": 0.43284
}

Semantic roles & 50–950 ramp

primary
#A5BA2A
secondary
#8276CA
accent
#42E65A
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5BA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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