#A5BA2B#A5BA2B

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

Color values

HEX#A5BA2B
RGBrgb(165, 186, 43)
HSLhsl(69, 62%, 45%)
HSVhsv(69, 77%, 73%)
CMYKcmyk(11.3%, 0%, 76.9%, 27.1%)
CIE-LABlab(71.75, -25.01, 64.58)
CIE-LCHlch(71.75, 69.25, 111.17°)
OKLaboklab(74.8% -0.0753 0.1417)
OKLCHoklch(74.8% 0.16 118)
XYZxyz(33.5128, 43.2919, 8.8757)
Luminance0.4329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5BA2B #402BBA
analogous
#BA872B #A5BA2B #5EBA2B
triadic
#A5BA2B #2BA5BA #BA2BA5
tetradic
#A5BA2B #2BBA87 #402BBA #BA2B5E
square
#A5BA2B #2BBA87 #402BBA #BA2B5E
split-complementary
#A5BA2B #2B5EBA #872BBA
monochromatic
#4D5714 #798820 #A5BA2B #C2D64C #D3E17E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5BA2B#FFFFFF#000000##000000
##A5BA2B1.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)
#C7B001
Deuteranopia (green-blind)
#C5B038
Tritanopia (blue-blind)
#AFAF9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #a5ba2b;
/* rgb */ color: rgb(165, 186, 43);
/* oklch */ color: oklch(74.8% 0.160 118.0);
Tailwind
colors: {
  custom: {
    50: '#c3ce70',
    500: '#a5ba2b',
    950: '#000000',
  },
}
SCSS
$custom: #a5ba2b;
$custom-light: #c3ce70;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ba2b",
  "rgb": {
    "r": 165,
    "g": 186,
    "b": 43
  },
  "hsl": {
    "h": 68.811,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74795,
    "c": 0.16049,
    "h": 118
  },
  "luminance": 0.43292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A5BA2B

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

Preview Lab → · Contrast checker → · Palette generator →

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