#A5B128#A5B128

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

Color values

HEX#A5B128
RGBrgb(165, 177, 40)
HSLhsl(65, 63%, 43%)
HSVhsv(65, 77%, 69%)
CMYKcmyk(6.8%, 0%, 77.4%, 30.6%)
CIE-LABlab(69.18, -20.70, 63.15)
CIE-LCHlch(69.18, 66.46, 108.15°)
OKLaboklab(72.72% -0.0636 0.1382)
OKLCHoklch(72.72% 0.152 114.7)
XYZxyz(31.6231, 39.5974, 7.9843)
Luminance0.3960 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B128 #3428B1
analogous
#B17828 #A5B128 #61B128
triadic
#A5B128 #28A5B1 #B128A5
tetradic
#A5B128 #28B178 #3428B1 #B12861
square
#A5B128 #28B178 #3428B1 #B12861
split-complementary
#A5B128 #2861B1 #7828B1
monochromatic
#484D11 #767F1D #A5B128 #C7D442 #D6E074

Accessibility & contrast

On white

2.35
#A5B128 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5B128#FFFFFF#000000##000000
##A5B1281.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5b128;
/* rgb */ color: rgb(165, 177, 40);
/* oklch */ color: oklch(72.7% 0.152 114.7);
Tailwind
colors: {
  custom: {
    50: '#c3c86e',
    500: '#a5b128',
    950: '#000000',
  },
}
SCSS
$custom: #a5b128;
$custom-light: #c3c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b128",
  "rgb": {
    "r": 165,
    "g": 177,
    "b": 40
  },
  "hsl": {
    "h": 65.255,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72724,
    "c": 0.15212,
    "h": 114.7
  },
  "luminance": 0.39597
}

Semantic roles & 50–950 ramp

primary
#A5B128
secondary
#766EC7
accent
#42E650
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5B128

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

Preview Lab → · Contrast checker → · Palette generator →

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