#A5A122#A5A122

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

Color values

HEX#A5A122
RGBrgb(165, 161, 34)
HSLhsl(58, 66%, 39%)
HSVhsv(58, 79%, 65%)
CMYKcmyk(0%, 2.4%, 79.4%, 35.3%)
CIE-LABlab(64.65, -12.76, 60.90)
CIE-LCHlch(64.65, 62.22, 101.83°)
OKLaboklab(69.09% -0.042 0.1323)
OKLCHoklch(69.09% 0.139 107.6)
XYZxyz(28.5518, 33.6056, 6.4956)
Luminance0.3361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A122 #2226A5
analogous
#A56022 #A5A122 #68A522
triadic
#A5A122 #22A5A1 #A122A5
tetradic
#A5A122 #22A560 #2226A5 #A52268
square
#A5A122 #22A560 #2226A5 #A52268
split-complementary
#A5A122 #2268A5 #6022A5
monochromatic
#403E0D #726F18 #A5A122 #D4CF30 #DFDB63

Accessibility & contrast

On white

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

On black

7.72
#A5A122 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A122
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A122#FFFFFF#000000##000000
##A5A1221.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5a122;
/* rgb */ color: rgb(165, 161, 34);
/* oklch */ color: oklch(69.1% 0.139 107.6);
Tailwind
colors: {
  custom: {
    50: '#c3bc69',
    500: '#a5a122',
    950: '#000000',
  },
}
SCSS
$custom: #a5a122;
$custom-light: #c3bc69;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a122",
  "rgb": {
    "r": 165,
    "g": 161,
    "b": 34
  },
  "hsl": {
    "h": 58.168,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69087,
    "c": 0.1388,
    "h": 107.6
  },
  "luminance": 0.33605
}

Semantic roles & 50–950 ramp

primary
#A5A122
secondary
#5F62C4
accent
#44E93F
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A122

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

Preview Lab → · Contrast checker → · Palette generator →

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