#A8A42E#A8A42E

#A8A42E is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.1% C 0.135 H 107.5°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#A8A42E
RGBrgb(168, 164, 46)
HSLhsl(58, 57%, 42%)
HSVhsv(58, 73%, 66%)
CMYKcmyk(0%, 2.4%, 72.6%, 34.1%)
CIE-LABlab(65.81, -12.49, 58.06)
CIE-LCHlch(65.81, 59.39, 102.14°)
OKLaboklab(70.09% -0.0404 0.1284)
OKLCHoklch(70.09% 0.135 107.5)
XYZxyz(29.9182, 35.0740, 7.7782)
Luminance0.3507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A42E #2E32A8
analogous
#A8672E #A8A42E #6FA82E
triadic
#A8A42E #2EA8A4 #A42EA8
tetradic
#A8A42E #2EA867 #2E32A8 #A82E6F
square
#A8A42E #2EA867 #2E32A8 #A82E6F
split-complementary
#A8A42E #2E6FA8 #672EA8
monochromatic
#484614 #787521 #A8A42E #CDC847 #DAD677

Accessibility & contrast

On white

2.62
#A8A42E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#A8A42E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A42E
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A42E#FFFFFF#000000##000000
##A8A42E1.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D18
Deuteranopia (green-blind)
#B4A237
Tritanopia (blue-blind)
#B4998D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a8a42e;
/* rgb */ color: rgb(168, 164, 46);
/* oklch */ color: oklch(70.1% 0.135 107.5);
Tailwind
colors: {
  custom: {
    50: '#c5be6f',
    500: '#a8a42e',
    950: '#000000',
  },
}
SCSS
$custom: #a8a42e;
$custom-light: #c5be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a42e",
  "rgb": {
    "r": 168,
    "g": 164,
    "b": 46
  },
  "hsl": {
    "h": 58.033,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.70094,
    "c": 0.13457,
    "h": 107.5
  },
  "luminance": 0.35073
}

Semantic roles & 50–950 ramp

primary
#A8A42E
secondary
#7073C2
accent
#4DE048
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A8A42E

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

Preview Lab → · Contrast checker → · Palette generator →

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