#A8A838#A8A838

#A8A838 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.1% C 0.132 H 109.3°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#A8A838
RGBrgb(168, 168, 56)
HSLhsl(60, 50%, 44%)
HSVhsv(60, 67%, 66%)
CMYKcmyk(0%, 0%, 66.7%, 34.1%)
CIE-LABlab(66.99, -14.03, 55.38)
CIE-LCHlch(66.99, 57.13, 104.22°)
OKLaboklab(71.06% -0.0437 0.1245)
OKLCHoklch(71.06% 0.132 109.3)
XYZxyz(30.8659, 36.6165, 9.1824)
Luminance0.3662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A838 #3838A8
analogous
#A87038 #A8A838 #70A838
triadic
#A8A838 #38A8A8 #A838A8
tetradic
#A8A838 #38A870 #3838A8 #A83870
square
#A8A838 #38A870 #3838A8 #A83870
split-complementary
#A8A838 #3870A8 #7038A8
monochromatic
#4C4C19 #7A7A29 #A8A838 #C7C756 #D6D684

Accessibility & contrast

On white

2.52
#A8A838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#A8A838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A838
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A838#FFFFFF#000000##000000
##A8A8381.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A128
Deuteranopia (green-blind)
#B7A540
Tritanopia (blue-blind)
#B49E91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a8a838;
/* rgb */ color: rgb(168, 168, 56);
/* oklch */ color: oklch(71.1% 0.132 109.3);
Tailwind
colors: {
  custom: {
    50: '#c5c175',
    500: '#a8a838',
    950: '#000000',
  },
}
SCSS
$custom: #a8a838;
$custom-light: #c5c175;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a838",
  "rgb": {
    "r": 168,
    "g": 168,
    "b": 56
  },
  "hsl": {
    "h": 60,
    "s": 50,
    "l": 43.922
  },
  "oklch": {
    "l": 0.71059,
    "c": 0.1319,
    "h": 109.3
  },
  "luminance": 0.36616
}

Semantic roles & 50–950 ramp

primary
#A8A838
secondary
#7C7CC0
accent
#4EDA4E
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A838

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

Preview Lab → · Contrast checker → · Palette generator →

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