#A8A228#A8A228

#A8A228 is a light, vivid yellow. Relative luminance 0.343; OKLCH L 69.6% C 0.136 H 106.5°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#A8A228
RGBrgb(168, 162, 40)
HSLhsl(57, 62%, 41%)
HSVhsv(57, 76%, 66%)
CMYKcmyk(0%, 3.6%, 76.2%, 34.1%)
CIE-LABlab(65.22, -11.72, 59.60)
CIE-LCHlch(65.22, 60.74, 101.12°)
OKLaboklab(69.61% -0.0388 0.1305)
OKLCHoklch(69.61% 0.136 106.5)
XYZxyz(29.4530, 34.3198, 7.0800)
Luminance0.3432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A228 #282EA8
analogous
#A86228 #A8A228 #6EA828
triadic
#A8A228 #28A8A2 #A228A8
tetradic
#A8A228 #28A862 #282EA8 #A8286E
square
#A8A228 #28A862 #282EA8 #A8286E
split-complementary
#A8A228 #286EA8 #6228A8
monochromatic
#454310 #77721C #A8A228 #D1CA3D #DCD76E

Accessibility & contrast

On white

2.67
#A8A228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#A8A228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A228
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A228#FFFFFF#000000##000000
##A8A2281.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C0B
Deuteranopia (green-blind)
#B3A032
Tritanopia (blue-blind)
#B5978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a228;
/* rgb */ color: rgb(168, 162, 40);
/* oklch */ color: oklch(69.6% 0.136 106.5);
Tailwind
colors: {
  custom: {
    50: '#c6bd6c',
    500: '#a8a228',
    950: '#000000',
  },
}
SCSS
$custom: #a8a228;
$custom-light: #c6bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a228",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 57.188,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.69612,
    "c": 0.13616,
    "h": 106.5
  },
  "luminance": 0.34319
}

Semantic roles & 50–950 ramp

primary
#A8A228
secondary
#696DC3
accent
#4BE543
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A228

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

Preview Lab → · Contrast checker → · Palette generator →

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