#A5B31C#A5B31C

#A5B31C is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.1% C 0.159 H 115.4°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#A5B31C
RGBrgb(165, 179, 28)
HSLhsl(66, 73%, 41%)
HSVhsv(66, 84%, 70%)
CMYKcmyk(7.8%, 0%, 84.4%, 29.8%)
CIE-LABlab(69.70, -22.11, 66.87)
CIE-LCHlch(69.70, 70.43, 108.30°)
OKLaboklab(73.12% -0.0683 0.1441)
OKLCHoklch(73.12% 0.159 115.4)
XYZxyz(31.8477, 40.3239, 7.2040)
Luminance0.4032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B31C #2A1CB3
analogous
#B3751C #A5B31C #59B31C
triadic
#A5B31C #1CA5B3 #B31CA5
tetradic
#A5B31C #1CB375 #2A1CB3 #B31C59
square
#A5B31C #1CB375 #2A1CB3 #B31C59
split-complementary
#A5B31C #1C59B3 #751CB3
monochromatic
#43490B #747E14 #A5B31C #CEDE2E #DAE763

Accessibility & contrast

On white

2.32
#A5B31C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#A5B31C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B31C
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B31C#FFFFFF#000000##000000
##A5B31C1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BFAB2D
Tritanopia (blue-blind)
#B0A899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a5b31c;
/* rgb */ color: rgb(165, 179, 28);
/* oklch */ color: oklch(73.1% 0.159 115.4);
Tailwind
colors: {
  custom: {
    50: '#c4c969',
    500: '#a5b31c',
    950: '#000000',
  },
}
SCSS
$custom: #a5b31c;
$custom-light: #c4c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b31c",
  "rgb": {
    "r": 165,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 65.563,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.73124,
    "c": 0.15947,
    "h": 115.4
  },
  "luminance": 0.40323
}

Semantic roles & 50–950 ramp

primary
#A5B31C
secondary
#695FCB
accent
#38F049
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A5B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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