#A7A223#A7A223

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

Color values

HEX#A7A223
RGBrgb(167, 162, 35)
HSLhsl(58, 65%, 40%)
HSVhsv(58, 79%, 65%)
CMYKcmyk(0%, 3%, 79%, 34.5%)
CIE-LABlab(65.10, -12.36, 61.07)
CIE-LCHlch(65.10, 62.31, 101.44°)
OKLaboklab(69.49% -0.0409 0.1328)
OKLCHoklch(69.49% 0.139 107.1)
XYZxyz(29.1613, 34.1785, 6.6508)
Luminance0.3418 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A223 #2328A7
analogous
#A76023 #A7A223 #6AA723
triadic
#A7A223 #23A7A2 #A223A7
tetradic
#A7A223 #23A760 #2328A7 #A7236A
square
#A7A223 #23A760 #2328A7 #A7236A
split-complementary
#A7A223 #236AA7 #6023A7
monochromatic
#42400E #747118 #A7A223 #D4CE33 #DFDA66

Accessibility & contrast

On white

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

On black

7.84
#A7A223 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A223
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A223#FFFFFF#000000##000000
##A7A2231.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#B3A02E
Tritanopia (blue-blind)
#B4978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a7a223;
/* rgb */ color: rgb(167, 162, 35);
/* oklch */ color: oklch(69.5% 0.139 107.1);
Tailwind
colors: {
  custom: {
    50: '#c5bd6a',
    500: '#a7a223',
    950: '#000000',
  },
}
SCSS
$custom: #a7a223;
$custom-light: #c5bd6a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a223",
  "rgb": {
    "r": 167,
    "g": 162,
    "b": 35
  },
  "hsl": {
    "h": 57.727,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.69494,
    "c": 0.13892,
    "h": 107.1
  },
  "luminance": 0.34177
}

Semantic roles & 50–950 ramp

primary
#A7A223
secondary
#6165C4
accent
#46E83F
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A223

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

Preview Lab → · Contrast checker → · Palette generator →

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