#A7A228#A7A228

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

Color values

HEX#A7A228
RGBrgb(167, 162, 40)
HSLhsl(58, 61%, 41%)
HSVhsv(58, 76%, 65%)
CMYKcmyk(0%, 3%, 76%, 34.5%)
CIE-LABlab(65.13, -12.16, 59.49)
CIE-LCHlch(65.13, 60.72, 101.55°)
OKLaboklab(69.52% -0.0399 0.1303)
OKLCHoklch(69.52% 0.136 107)
XYZxyz(29.2409, 34.2104, 7.0701)
Luminance0.3421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A228 #282DA7
analogous
#A76228 #A7A228 #6CA728
triadic
#A7A228 #28A7A2 #A228A7
tetradic
#A7A228 #28A762 #282DA7 #A7286C
square
#A7A228 #28A762 #282DA7 #A7286C
split-complementary
#A7A228 #286CA7 #6228A7
monochromatic
#444210 #76721C #A7A228 #D0CA3C #DCD86D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7A228#FFFFFF#000000##000000
##A7A2281.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)
#B09C0B
Deuteranopia (green-blind)
#B3A032
Tritanopia (blue-blind)
#B4978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a7a228;
/* rgb */ color: rgb(167, 162, 40);
/* oklch */ color: oklch(69.5% 0.136 107.0);
Tailwind
colors: {
  custom: {
    50: '#c5bd6c',
    500: '#a7a228',
    950: '#000000',
  },
}
SCSS
$custom: #a7a228;
$custom-light: #c5bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a228",
  "rgb": {
    "r": 167,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 57.638,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.69522,
    "c": 0.13632,
    "h": 107
  },
  "luminance": 0.34209
}

Semantic roles & 50–950 ramp

primary
#A7A228
secondary
#686CC3
accent
#4AE443
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A228

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

Preview Lab → · Contrast checker → · Palette generator →

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