#A8A81F#A8A81F

#A8A81F is a light, vivid yellow. Relative luminance 0.364; OKLCH L 70.9% C 0.146 H 109.6°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#A8A81F
RGBrgb(168, 168, 31)
HSLhsl(60, 69%, 39%)
HSVhsv(60, 82%, 66%)
CMYKcmyk(0%, 0%, 81.5%, 34.1%)
CIE-LABlab(66.85, -15.16, 63.78)
CIE-LCHlch(66.85, 65.56, 103.37°)
OKLaboklab(70.9% -0.0491 0.1378)
OKLCHoklch(70.9% 0.146 109.6)
XYZxyz(30.3996, 36.4300, 6.7264)
Luminance0.3643 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A81F #1F1FA8
analogous
#A8641F #A8A81F #64A81F
triadic
#A8A81F #1FA8A8 #A81FA8
tetradic
#A8A81F #1FA864 #1F1FA8 #A81F64
square
#A8A81F #1FA864 #1F1FA8 #A81F64
split-complementary
#A8A81F #1F64A8 #641FA8
monochromatic
#41410C #747415 #A8A81F #D8D82C #E2E260

Accessibility & contrast

On white

2.53
#A8A81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#A8A81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A81F
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A81F#FFFFFF#000000##000000
##A8A81F1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A100
Deuteranopia (green-blind)
#B8A42C
Tritanopia (blue-blind)
#B49D8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a8a81f;
/* rgb */ color: rgb(168, 168, 31);
/* oklch */ color: oklch(70.9% 0.146 109.6);
Tailwind
colors: {
  custom: {
    50: '#c6c169',
    500: '#a8a81f',
    950: '#000000',
  },
}
SCSS
$custom: #a8a81f;
$custom-light: #c6c169;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a81f",
  "rgb": {
    "r": 168,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.70901,
    "c": 0.14627,
    "h": 109.6
  },
  "luminance": 0.36429
}

Semantic roles & 50–950 ramp

primary
#A8A81F
secondary
#5D5DC6
accent
#3CEC3C
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A81F

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

Preview Lab → · Contrast checker → · Palette generator →

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