#A5B231#A5B231

#A5B231 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.0% C 0.148 H 115.2°. Best body text is #000000 at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#A5B231
RGBrgb(165, 178, 49)
HSLhsl(66, 57%, 45%)
HSVhsv(66, 72%, 70%)
CMYKcmyk(7.3%, 0%, 72.5%, 30.2%)
CIE-LABlab(69.51, -20.79, 60.47)
CIE-LCHlch(69.51, 63.94, 108.97°)
OKLaboklab(73.01% -0.0631 0.1341)
OKLCHoklch(73.01% 0.148 115.2)
XYZxyz(31.9927, 40.0624, 8.9526)
Luminance0.4006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B231 #3E31B2
analogous
#B27F31 #A5B231 #64B231
triadic
#A5B231 #31A5B2 #B231A5
tetradic
#A5B231 #31B27F #3E31B2 #B23164
square
#A5B231 #31B27F #3E31B2 #B23164
split-complementary
#A5B231 #3164B2 #7F31B2
monochromatic
#4C5217 #798224 #A5B231 #C2CF51 #D3DC81

Accessibility & contrast

On white

2.33
#A5B231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.01
#A5B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B231
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B231#FFFFFF#000000##000000
##A5B2311.002.339.019.01
#FFFFFF2.331.0021.0021.00
#0000009.0121.001.001.00
##0000009.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5b231;
/* rgb */ color: rgb(165, 178, 49);
/* oklch */ color: oklch(73.0% 0.148 115.2);
Tailwind
colors: {
  custom: {
    50: '#c3c872',
    500: '#a5b231',
    950: '#000000',
  },
}
SCSS
$custom: #a5b231;
$custom-light: #c3c872;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b231",
  "rgb": {
    "r": 165,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 66.047,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73006,
    "c": 0.14819,
    "h": 115.2
  },
  "luminance": 0.40062
}

Semantic roles & 50–950 ramp

primary
#A5B231
secondary
#8179C5
accent
#48E057
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5B231

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

Preview Lab → · Contrast checker → · Palette generator →

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