#A5B127#A5B127

#A5B127 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#A5B127
RGBrgb(165, 177, 39)
HSLhsl(65, 64%, 42%)
HSVhsv(65, 78%, 69%)
CMYKcmyk(6.8%, 0%, 78%, 30.6%)
CIE-LABlab(69.18, -20.74, 63.45)
CIE-LCHlch(69.18, 66.76, 108.10°)
OKLaboklab(72.72% -0.0638 0.1387)
OKLCHoklch(72.72% 0.153 114.7)
XYZxyz(31.6063, 39.5907, 7.8959)
Luminance0.3959 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5B127 #3327B1
analogous
#B17827 #A5B127 #60B127
triadic
#A5B127 #27A5B1 #B127A5
tetradic
#A5B127 #27B178 #3327B1 #B12760
square
#A5B127 #27B178 #3327B1 #B12760
split-complementary
#A5B127 #2760B1 #7827B1
monochromatic
#484D11 #767F1C #A5B127 #C8D540 #D6E072

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5B127#FFFFFF#000000##000000
##A5B1271.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)
#BEAA34
Tritanopia (blue-blind)
#B0A698
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a5b127;
/* rgb */ color: rgb(165, 177, 39);
/* oklch */ color: oklch(72.7% 0.153 114.7);
Tailwind
colors: {
  custom: {
    50: '#c3c86d',
    500: '#a5b127',
    950: '#000000',
  },
}
SCSS
$custom: #a5b127;
$custom-light: #c3c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#a5b127",
  "rgb": {
    "r": 165,
    "g": 177,
    "b": 39
  },
  "hsl": {
    "h": 65.217,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.72719,
    "c": 0.15263,
    "h": 114.7
  },
  "luminance": 0.3959
}

Semantic roles & 50–950 ramp

primary
#A5B127
secondary
#756DC7
accent
#41E74F
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A5B127

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

Preview Lab → · Contrast checker → · Palette generator →

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