#A5A127#A5A127

#A5A127 is a light, vivid yellow. Relative luminance 0.336; OKLCH L 69.1% C 0.136 H 107.5°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#A5A127
RGBrgb(165, 161, 39)
HSLhsl(58, 62%, 40%)
HSVhsv(58, 76%, 65%)
CMYKcmyk(0%, 2.4%, 76.4%, 35.3%)
CIE-LABlab(64.67, -12.56, 59.34)
CIE-LCHlch(64.67, 60.66, 101.95°)
OKLaboklab(69.12% -0.0411 0.1299)
OKLCHoklch(69.12% 0.136 107.5)
XYZxyz(28.6293, 33.6365, 6.9035)
Luminance0.3364 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A127 #272BA5
analogous
#A56227 #A5A127 #6AA527
triadic
#A5A127 #27A5A1 #A127A5
tetradic
#A5A127 #27A562 #272BA5 #A5276A
square
#A5A127 #27A562 #272BA5 #A5276A
split-complementary
#A5A127 #276AA5 #6227A5
monochromatic
#424010 #74711B #A5A127 #D0CB39 #DCD86A

Accessibility & contrast

On white

2.72
#A5A127 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#A5A127 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A127
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A127#FFFFFF#000000##000000
##A5A1271.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A09
Deuteranopia (green-blind)
#B19F31
Tritanopia (blue-blind)
#B1968A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a5a127;
/* rgb */ color: rgb(165, 161, 39);
/* oklch */ color: oklch(69.1% 0.136 107.5);
Tailwind
colors: {
  custom: {
    50: '#c3bc6b',
    500: '#a5a127',
    950: '#000000',
  },
}
SCSS
$custom: #a5a127;
$custom-light: #c3bc6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a127",
  "rgb": {
    "r": 165,
    "g": 161,
    "b": 39
  },
  "hsl": {
    "h": 58.095,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.69115,
    "c": 0.13623,
    "h": 107.5
  },
  "luminance": 0.33636
}

Semantic roles & 50–950 ramp

primary
#A5A127
secondary
#6669C2
accent
#48E543
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A127

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

Preview Lab → · Contrast checker → · Palette generator →

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