#A5A126#A5A126

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

Color values

HEX#A5A126
RGBrgb(165, 161, 38)
HSLhsl(58, 63%, 40%)
HSVhsv(58, 77%, 65%)
CMYKcmyk(0%, 2.4%, 77%, 35.3%)
CIE-LABlab(64.67, -12.60, 59.66)
CIE-LCHlch(64.67, 60.98, 101.93°)
OKLaboklab(69.11% -0.0413 0.1304)
OKLCHoklch(69.11% 0.137 107.6)
XYZxyz(28.6129, 33.6300, 6.8174)
Luminance0.3363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A126 #262AA5
analogous
#A56126 #A5A126 #6AA526
triadic
#A5A126 #26A5A1 #A126A5
tetradic
#A5A126 #26A561 #262AA5 #A5266A
square
#A5A126 #26A561 #262AA5 #A5266A
split-complementary
#A5A126 #266AA5 #6126A5
monochromatic
#42400F #73701B #A5A126 #D1CC37 #DCD969

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A5A126#FFFFFF#000000##000000
##A5A1261.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)
#AF9A06
Deuteranopia (green-blind)
#B19F30
Tritanopia (blue-blind)
#B1968A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a5a126;
/* rgb */ color: rgb(165, 161, 38);
/* oklch */ color: oklch(69.1% 0.137 107.6);
Tailwind
colors: {
  custom: {
    50: '#c3bc6b',
    500: '#a5a126',
    950: '#000000',
  },
}
SCSS
$custom: #a5a126;
$custom-light: #c3bc6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a126",
  "rgb": {
    "r": 165,
    "g": 161,
    "b": 38
  },
  "hsl": {
    "h": 58.11,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.69109,
    "c": 0.13677,
    "h": 107.6
  },
  "luminance": 0.33629
}

Semantic roles & 50–950 ramp

primary
#A5A126
secondary
#6467C3
accent
#47E642
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A126

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

Preview Lab → · Contrast checker → · Palette generator →

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