#A7B22D#A7B22D

#A7B22D is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.1% C 0.150 H 114.3°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#A7B22D
RGBrgb(167, 178, 45)
HSLhsl(65, 60%, 44%)
HSVhsv(65, 75%, 70%)
CMYKcmyk(6.2%, 0%, 74.7%, 30.2%)
CIE-LABlab(69.64, -20.13, 62.03)
CIE-LCHlch(69.64, 65.21, 107.98°)
OKLaboklab(73.14% -0.0617 0.1366)
OKLCHoklch(73.14% 0.15 114.3)
XYZxyz(32.3314, 40.2464, 8.5473)
Luminance0.4025 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B22D #382DB2
analogous
#B27A2D #A7B22D #64B22D
triadic
#A7B22D #2DA7B2 #B22DA7
tetradic
#A7B22D #2DB27A #382DB2 #B22D64
square
#A7B22D #2DB27A #382DB2 #B22D64
split-complementary
#A7B22D #2D64B2 #7A2DB2
monochromatic
#4B5014 #798121 #A7B22D #C6D14B #D6DE7C

Accessibility & contrast

On white

2.32
#A7B22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.05
#A7B22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B22D
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B22D#FFFFFF#000000##000000
##A7B22D1.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA90F
Deuteranopia (green-blind)
#BFAB38
Tritanopia (blue-blind)
#B2A799
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a7b22d;
/* rgb */ color: rgb(167, 178, 45);
/* oklch */ color: oklch(73.1% 0.150 114.3);
Tailwind
colors: {
  custom: {
    50: '#c5c870',
    500: '#a7b22d',
    950: '#000000',
  },
}
SCSS
$custom: #a7b22d;
$custom-light: #c5c870;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b22d",
  "rgb": {
    "r": 167,
    "g": 178,
    "b": 45
  },
  "hsl": {
    "h": 64.962,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73142,
    "c": 0.14992,
    "h": 114.3
  },
  "luminance": 0.40246
}

Semantic roles & 50–950 ramp

primary
#A7B22D
secondary
#7B75C6
accent
#45E352
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B22D

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

Preview Lab → · Contrast checker → · Palette generator →

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