#A8A227#A8A227

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

Color values

HEX#A8A227
RGBrgb(168, 162, 39)
HSLhsl(57, 62%, 41%)
HSVhsv(57, 77%, 66%)
CMYKcmyk(0%, 3.6%, 76.8%, 34.1%)
CIE-LABlab(65.21, -11.76, 59.93)
CIE-LCHlch(65.21, 61.07, 101.10°)
OKLaboklab(69.61% -0.039 0.131)
OKLCHoklch(69.61% 0.137 106.6)
XYZxyz(29.4362, 34.3131, 6.9916)
Luminance0.3431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A227 #272DA8
analogous
#A86127 #A8A227 #6EA827
triadic
#A8A227 #27A8A2 #A227A8
tetradic
#A8A227 #27A861 #272DA8 #A8276E
square
#A8A227 #27A861 #272DA8 #A8276E
split-complementary
#A8A227 #276EA8 #6127A8
monochromatic
#454210 #76721B #A8A227 #D1CA3B #DDD86C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8A227#FFFFFF#000000##000000
##A8A2271.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)
#B09C08
Deuteranopia (green-blind)
#B3A031
Tritanopia (blue-blind)
#B5978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a227;
/* rgb */ color: rgb(168, 162, 39);
/* oklch */ color: oklch(69.6% 0.137 106.6);
Tailwind
colors: {
  custom: {
    50: '#c6bd6c',
    500: '#a8a227',
    950: '#000000',
  },
}
SCSS
$custom: #a8a227;
$custom-light: #c6bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a227",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 57.209,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.69606,
    "c": 0.1367,
    "h": 106.6
  },
  "luminance": 0.34312
}

Semantic roles & 50–950 ramp

primary
#A8A227
secondary
#676CC3
accent
#4AE542
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A227

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

Preview Lab → · Contrast checker → · Palette generator →

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