#A8A231#A8A231

#A8A231 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.7% C 0.131 H 106.3°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#A8A231
RGBrgb(168, 162, 49)
HSLhsl(57, 55%, 43%)
HSVhsv(57, 71%, 66%)
CMYKcmyk(0%, 3.6%, 70.8%, 34.1%)
CIE-LABlab(65.27, -11.29, 56.41)
CIE-LCHlch(65.27, 57.53, 101.32°)
OKLaboklab(69.67% -0.0367 0.1255)
OKLCHoklch(69.67% 0.131 106.3)
XYZxyz(29.6243, 34.3883, 7.9823)
Luminance0.3439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A231 #3137A8
analogous
#A86731 #A8A231 #72A831
triadic
#A8A231 #31A8A2 #A231A8
tetradic
#A8A231 #31A867 #3137A8 #A83172
square
#A8A231 #31A867 #3137A8 #A83172
split-complementary
#A8A231 #3172A8 #6731A8
monochromatic
#494715 #797423 #A8A231 #CBC44C #D8D47B

Accessibility & contrast

On white

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

On black

7.88
#A8A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A231
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A231#FFFFFF#000000##000000
##A8A2311.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B2A139
Tritanopia (blue-blind)
#B4978C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a231;
/* rgb */ color: rgb(168, 162, 49);
/* oklch */ color: oklch(69.7% 0.131 106.3);
Tailwind
colors: {
  custom: {
    50: '#c5bd71',
    500: '#a8a231',
    950: '#000000',
  },
}
SCSS
$custom: #a8a231;
$custom-light: #c5bd71;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a231",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 56.975,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.69672,
    "c": 0.13071,
    "h": 106.3
  },
  "luminance": 0.34387
}

Semantic roles & 50–950 ramp

primary
#A8A231
secondary
#7478C1
accent
#51DE4A
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A8A231

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

Preview Lab → · Contrast checker → · Palette generator →

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