#A8A42B#A8A42B

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

Color values

HEX#A8A42B
RGBrgb(168, 164, 43)
HSLhsl(58, 59%, 41%)
HSVhsv(58, 74%, 66%)
CMYKcmyk(0%, 2.4%, 74.4%, 34.1%)
CIE-LABlab(65.79, -12.63, 59.11)
CIE-LCHlch(65.79, 60.45, 102.06°)
OKLaboklab(70.07% -0.041 0.1301)
OKLCHoklch(70.07% 0.136 107.5)
XYZxyz(29.8611, 35.0512, 7.4776)
Luminance0.3505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A42B #2B2FA8
analogous
#A8662B #A8A42B #6EA82B
triadic
#A8A42B #2BA8A4 #A42BA8
tetradic
#A8A42B #2BA866 #2B2FA8 #A82B6E
square
#A8A42B #2BA866 #2B2FA8 #A82B6E
split-complementary
#A8A42B #2B6EA8 #662BA8
monochromatic
#474512 #77741F #A8A42B #CFCA42 #DBD872

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8A42B#FFFFFF#000000##000000
##A8A42B1.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)
#B29D12
Deuteranopia (green-blind)
#B4A234
Tritanopia (blue-blind)
#B4998D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a8a42b;
/* rgb */ color: rgb(168, 164, 43);
/* oklch */ color: oklch(70.1% 0.136 107.5);
Tailwind
colors: {
  custom: {
    50: '#c5be6e',
    500: '#a8a42b',
    950: '#000000',
  },
}
SCSS
$custom: #a8a42b;
$custom-light: #c5be6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a42b",
  "rgb": {
    "r": 168,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 58.08,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.70074,
    "c": 0.13637,
    "h": 107.5
  },
  "luminance": 0.3505
}

Semantic roles & 50–950 ramp

primary
#A8A42B
secondary
#6C6FC2
accent
#4AE245
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A8A42B

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

Preview Lab → · Contrast checker → · Palette generator →

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