#A5A226#A5A226

#A5A226 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.3% C 0.138 H 108.1°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#A5A226
RGBrgb(165, 162, 38)
HSLhsl(59, 63%, 40%)
HSVhsv(59, 77%, 65%)
CMYKcmyk(0%, 1.8%, 77%, 35.3%)
CIE-LABlab(64.95, -13.12, 59.92)
CIE-LCHlch(64.95, 61.34, 102.35°)
OKLaboklab(69.33% -0.0427 0.131)
OKLCHoklch(69.33% 0.138 108.1)
XYZxyz(28.7884, 33.9809, 6.8759)
Luminance0.3398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A226 #2629A5
analogous
#A56326 #A5A226 #68A526
triadic
#A5A226 #26A5A2 #A226A5
tetradic
#A5A226 #26A563 #2629A5 #A52668
square
#A5A226 #26A563 #2629A5 #A52668
split-complementary
#A5A226 #2668A5 #6326A5
monochromatic
#42400F #73711B #A5A226 #D1CD37 #DCDA69

Accessibility & contrast

On white

2.69
#A5A226 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#A5A226 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A226
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A226#FFFFFF#000000##000000
##A5A2261.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B05
Deuteranopia (green-blind)
#B2A030
Tritanopia (blue-blind)
#B1978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a5a226;
/* rgb */ color: rgb(165, 162, 38);
/* oklch */ color: oklch(69.3% 0.138 108.1);
Tailwind
colors: {
  custom: {
    50: '#c3bd6b',
    500: '#a5a226',
    950: '#000000',
  },
}
SCSS
$custom: #a5a226;
$custom-light: #c3bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a226",
  "rgb": {
    "r": 165,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 58.583,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.69332,
    "c": 0.13774,
    "h": 108.1
  },
  "luminance": 0.3398
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A5A226

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

Preview Lab → · Contrast checker → · Palette generator →

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