#A8A229#A8A229

#A8A229 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.87:1 contrast (WCAG AA passes).

Color values

HEX#A8A229
RGBrgb(168, 162, 41)
HSLhsl(57, 61%, 41%)
HSVhsv(57, 76%, 66%)
CMYKcmyk(0%, 3.6%, 75.6%, 34.1%)
CIE-LABlab(65.22, -11.67, 59.27)
CIE-LCHlch(65.22, 60.41, 101.14°)
OKLaboklab(69.62% -0.0385 0.13)
OKLCHoklch(69.62% 0.136 106.5)
XYZxyz(29.4702, 34.3267, 7.1707)
Luminance0.3433 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A229 #292FA8
analogous
#A86229 #A8A229 #6EA829
triadic
#A8A229 #29A8A2 #A229A8
tetradic
#A8A229 #29A862 #292FA8 #A8296E
square
#A8A229 #29A862 #292FA8 #A8296E
split-complementary
#A8A229 #296EA8 #6229A8
monochromatic
#464311 #77731D #A8A229 #D0C93E #DCD76F

Accessibility & contrast

On white

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

On black

7.87
#A8A229 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A229
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A229#FFFFFF#000000##000000
##A8A2291.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8a229;
/* rgb */ color: rgb(168, 162, 41);
/* oklch */ color: oklch(69.6% 0.136 106.5);
Tailwind
colors: {
  custom: {
    50: '#c5bd6d',
    500: '#a8a229',
    950: '#000000',
  },
}
SCSS
$custom: #a8a229;
$custom-light: #c5bd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a229",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 41
  },
  "hsl": {
    "h": 57.165,
    "s": 60.766,
    "l": 40.98
  },
  "oklch": {
    "l": 0.69618,
    "c": 0.1356,
    "h": 106.5
  },
  "luminance": 0.34326
}

Semantic roles & 50–950 ramp

primary
#A8A229
secondary
#6A6EC3
accent
#4BE444
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A229

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

Preview Lab → · Contrast checker → · Palette generator →

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