#A5B831#A5B831

#A5B831 is a light, vivid yellow. Relative luminance 0.425; OKLCH L 74.4% C 0.155 H 117.4°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#A5B831
RGBrgb(165, 184, 49)
HSLhsl(68, 58%, 46%)
HSVhsv(68, 73%, 72%)
CMYKcmyk(10.3%, 0%, 73.4%, 27.8%)
CIE-LABlab(71.22, -23.76, 62.11)
CIE-LCHlch(71.22, 66.50, 110.93°)
OKLaboklab(74.37% -0.0713 0.1376)
OKLCHoklch(74.37% 0.155 117.4)
XYZxyz(33.2127, 42.5024, 9.3593)
Luminance0.4250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B831 #4431B8
analogous
#B88731 #A5B831 #62B831
triadic
#A5B831 #31A5B8 #B831A5
tetradic
#A5B831 #31B887 #4431B8 #B83162
square
#A5B831 #31B887 #4431B8 #B83162
split-complementary
#A5B831 #3162B8 #8731B8
monochromatic
#4E5717 #7A8824 #A5B831 #C0D255 #D2DE85

Accessibility & contrast

On white

2.21
#A5B831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#A5B831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B831
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B831#FFFFFF#000000##000000
##A5B8311.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE16
Deuteranopia (green-blind)
#C3AF3C
Tritanopia (blue-blind)
#AFAE9E
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #a5b831;
/* rgb */ color: rgb(165, 184, 49);
/* oklch */ color: oklch(74.4% 0.155 117.4);
Tailwind
colors: {
  custom: {
    50: '#c3cd73',
    500: '#a5b831',
    950: '#000000',
  },
}
SCSS
$custom: #a5b831;
$custom-light: #c3cd73;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b831",
  "rgb": {
    "r": 165,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 68.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74373,
    "c": 0.15493,
    "h": 117.4
  },
  "luminance": 0.42502
}

Semantic roles & 50–950 ramp

primary
#A5B831
secondary
#877DC8
accent
#47E15C
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A5B831

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

Preview Lab → · Contrast checker → · Palette generator →

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