#A7A22C#A7A22C

#A7A22C is a light, vivid yellow. Relative luminance 0.342; OKLCH L 69.5% C 0.134 H 107.0°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#A7A22C
RGBrgb(167, 162, 44)
HSLhsl(58, 58%, 41%)
HSVhsv(58, 74%, 65%)
CMYKcmyk(0%, 3%, 73.7%, 34.5%)
CIE-LABlab(65.15, -11.98, 58.13)
CIE-LCHlch(65.15, 59.35, 101.65°)
OKLaboklab(69.55% -0.0391 0.1282)
OKLCHoklch(69.55% 0.134 107)
XYZxyz(29.3125, 34.2390, 7.4471)
Luminance0.3424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A22C #2C31A7
analogous
#A7652C #A7A22C #6FA72C
triadic
#A7A22C #2CA7A2 #A22CA7
tetradic
#A7A22C #2CA765 #2C31A7 #A72C6F
square
#A7A22C #2CA765 #2C31A7 #A72C6F
split-complementary
#A7A22C #2C6FA7 #652CA7
monochromatic
#464412 #77731F #A7A22C #CDC843 #DAD673

Accessibility & contrast

On white

2.68
#A7A22C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#A7A22C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A22C
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A22C#FFFFFF#000000##000000
##A7A22C1.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C15
Deuteranopia (green-blind)
#B2A035
Tritanopia (blue-blind)
#B3978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a7a22c;
/* rgb */ color: rgb(167, 162, 44);
/* oklch */ color: oklch(69.5% 0.134 107.0);
Tailwind
colors: {
  custom: {
    50: '#c5bd6e',
    500: '#a7a22c',
    950: '#000000',
  },
}
SCSS
$custom: #a7a22c;
$custom-light: #c5bd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a22c",
  "rgb": {
    "r": 167,
    "g": 162,
    "b": 44
  },
  "hsl": {
    "h": 57.561,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.69547,
    "c": 0.13401,
    "h": 107
  },
  "luminance": 0.34238
}

Semantic roles & 50–950 ramp

primary
#A7A22C
secondary
#6D71C2
accent
#4DE246
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A7A22C

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

Preview Lab → · Contrast checker → · Palette generator →

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