#A5B531#A5B531

#A5B531 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.7% C 0.152 H 116.3°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#A5B531
RGBrgb(165, 181, 49)
HSLhsl(67, 57%, 45%)
HSVhsv(67, 73%, 71%)
CMYKcmyk(8.8%, 0%, 72.9%, 29%)
CIE-LABlab(70.36, -22.28, 61.29)
CIE-LCHlch(70.36, 65.21, 109.98°)
OKLaboklab(73.69% -0.0672 0.1358)
OKLCHoklch(73.69% 0.152 116.3)
XYZxyz(32.5961, 41.2693, 9.1538)
Luminance0.4127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B531 #4131B5
analogous
#B58331 #A5B531 #63B531
triadic
#A5B531 #31A5B5 #B531A5
tetradic
#A5B531 #31B583 #4131B5 #B53163
square
#A5B531 #31B583 #4131B5 #B53163
split-complementary
#A5B531 #3163B5 #8331B5
monochromatic
#4D5517 #798524 #A5B531 #C1D053 #D2DD83

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5B531#FFFFFF#000000##000000
##A5B5311.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)
#C2AB17
Deuteranopia (green-blind)
#C0AD3C
Tritanopia (blue-blind)
#B0AB9C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a5b531;
/* rgb */ color: rgb(165, 181, 49);
/* oklch */ color: oklch(73.7% 0.152 116.3);
Tailwind
colors: {
  custom: {
    50: '#c3cb73',
    500: '#a5b531',
    950: '#000000',
  },
}
SCSS
$custom: #a5b531;
$custom-light: #c3cb73;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b531",
  "rgb": {
    "r": 165,
    "g": 181,
    "b": 49
  },
  "hsl": {
    "h": 67.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73689,
    "c": 0.15154,
    "h": 116.3
  },
  "luminance": 0.41269
}

Semantic roles & 50–950 ramp

primary
#A5B531
secondary
#847BC7
accent
#47E15A
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A5B531

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

Preview Lab → · Contrast checker → · Palette generator →

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