#A5B126#A5B126

#A5B126 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.7% C 0.153 H 114.7°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#A5B126
RGBrgb(165, 177, 38)
HSLhsl(65, 65%, 42%)
HSVhsv(65, 79%, 69%)
CMYKcmyk(6.8%, 0%, 78.5%, 30.6%)
CIE-LABlab(69.17, -20.78, 63.75)
CIE-LCHlch(69.17, 67.05, 108.05°)
OKLaboklab(72.71% -0.064 0.1391)
OKLCHoklch(72.71% 0.153 114.7)
XYZxyz(31.5900, 39.5841, 7.8097)
Luminance0.3958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B126 #3226B1
analogous
#B17826 #A5B126 #60B126
triadic
#A5B126 #26A5B1 #B126A5
tetradic
#A5B126 #26B178 #3226B1 #B12660
square
#A5B126 #26B178 #3226B1 #B12660
split-complementary
#A5B126 #2660B1 #7826B1
monochromatic
#474C10 #767F1B #A5B126 #C9D63F #D7E071

Accessibility & contrast

On white

2.36
#A5B126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#A5B126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5B126
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5B126#FFFFFF#000000##000000
##A5B1261.002.368.928.92
#FFFFFF2.361.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BEAA33
Tritanopia (blue-blind)
#B0A697
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a5b126;
/* rgb */ color: rgb(165, 177, 38);
/* oklch */ color: oklch(72.7% 0.153 114.7);
Tailwind
colors: {
  custom: {
    50: '#c3c86d',
    500: '#a5b126',
    950: '#000000',
  },
}
SCSS
$custom: #a5b126;
$custom-light: #c3c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b126",
  "rgb": {
    "r": 165,
    "g": 177,
    "b": 38
  },
  "hsl": {
    "h": 65.18,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.72714,
    "c": 0.15311,
    "h": 114.7
  },
  "luminance": 0.39584
}

Semantic roles & 50–950 ramp

primary
#A5B126
secondary
#736BC7
accent
#40E84F
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #A5B126

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

Preview Lab → · Contrast checker → · Palette generator →

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