#A8A226#A8A226

#A8A226 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#A8A226
RGBrgb(168, 162, 38)
HSLhsl(57, 63%, 40%)
HSVhsv(57, 77%, 66%)
CMYKcmyk(0%, 3.6%, 77.4%, 34.1%)
CIE-LABlab(65.21, -11.80, 60.25)
CIE-LCHlch(65.21, 61.40, 101.08°)
OKLaboklab(69.6% -0.0392 0.1315)
OKLCHoklch(69.6% 0.137 106.6)
XYZxyz(29.4199, 34.3065, 6.9055)
Luminance0.3431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A226 #262CA8
analogous
#A86126 #A8A226 #6DA826
triadic
#A8A226 #26A8A2 #A226A8
tetradic
#A8A226 #26A861 #262CA8 #A8266D
square
#A8A226 #26A861 #262CA8 #A8266D
split-complementary
#A8A226 #266DA8 #6126A8
monochromatic
#44420F #76721B #A8A226 #D2CB39 #DED86B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8A226#FFFFFF#000000##000000
##A8A2261.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)
#B09C05
Deuteranopia (green-blind)
#B3A030
Tritanopia (blue-blind)
#B5978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a226;
/* rgb */ color: rgb(168, 162, 38);
/* oklch */ color: oklch(69.6% 0.137 106.6);
Tailwind
colors: {
  custom: {
    50: '#c6bd6b',
    500: '#a8a226',
    950: '#000000',
  },
}
SCSS
$custom: #a8a226;
$custom-light: #c6bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a226",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 57.231,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.696,
    "c": 0.13724,
    "h": 106.6
  },
  "luminance": 0.34305
}

Semantic roles & 50–950 ramp

primary
#A8A226
secondary
#666AC4
accent
#49E642
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A226

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

Preview Lab → · Contrast checker → · Palette generator →

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