#A5B451#A5B451

#A5B451 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.8% C 0.126 H 116.8°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#A5B451
RGBrgb(165, 180, 81)
HSLhsl(69, 40%, 51%)
HSVhsv(69, 55%, 71%)
CMYKcmyk(8.3%, 0%, 55%, 29.4%)
CIE-LABlab(70.34, -19.59, 47.95)
CIE-LCHlch(70.34, 51.80, 112.22°)
OKLaboklab(73.75% -0.0565 0.1121)
OKLCHoklch(73.75% 0.126 116.8)
XYZxyz(33.3240, 41.2363, 13.9869)
Luminance0.4124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B451 #6051B4
analogous
#B49151 #A5B451 #73B451
triadic
#A5B451 #51A5B4 #B451A5
tetradic
#A5B451 #51B491 #6051B4 #B45173
square
#A5B451 #51B491 #6051B4 #B45173
split-complementary
#A5B451 #5173B4 #9151B4
monochromatic
#59612A #808C3C #A5B451 #BBC67C #D1D9A7

Accessibility & contrast

On white

2.27
#A5B451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#A5B451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B451
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B451#FFFFFF#000000##000000
##A5B4511.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAC47
Deuteranopia (green-blind)
#BEAD57
Tritanopia (blue-blind)
#AEAB9E
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a5b451;
/* rgb */ color: rgb(165, 180, 81);
/* oklch */ color: oklch(73.8% 0.126 116.8);
Tailwind
colors: {
  custom: {
    50: '#c2ca85',
    500: '#a5b451',
    950: '#000000',
  },
}
SCSS
$custom: #a5b451;
$custom-light: #c2ca85;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b451",
  "rgb": {
    "r": 165,
    "g": 180,
    "b": 81
  },
  "hsl": {
    "h": 69.091,
    "s": 39.759,
    "l": 51.176
  },
  "oklch": {
    "l": 0.73754,
    "c": 0.12555,
    "h": 116.8
  },
  "luminance": 0.41236
}

Semantic roles & 50–950 ramp

primary
#A5B451
secondary
#A19BC6
accent
#58D06A
background
#FCFCF8
surface
#F8F8EF
border
#D1D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #A5B451

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

Preview Lab → · Contrast checker → · Palette generator →

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