#A8A31F#A8A31F

#A8A31F is a light, vivid yellow. Relative luminance 0.346; OKLCH L 69.8% C 0.142 H 107.2°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#A8A31F
RGBrgb(168, 163, 31)
HSLhsl(58, 69%, 39%)
HSVhsv(58, 82%, 66%)
CMYKcmyk(0%, 3%, 81.5%, 34.1%)
CIE-LABlab(65.45, -12.57, 62.57)
CIE-LCHlch(65.45, 63.82, 101.36°)
OKLaboklab(69.79% -0.0419 0.1352)
OKLCHoklch(69.79% 0.142 107.2)
XYZxyz(29.4942, 34.6192, 6.4246)
Luminance0.3462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A31F #1F24A8
analogous
#A85F1F #A8A31F #69A81F
triadic
#A8A31F #1FA8A3 #A31FA8
tetradic
#A8A31F #1FA85F #1F24A8 #A81F69
square
#A8A31F #1FA85F #1F24A8 #A81F69
split-complementary
#A8A31F #1F69A8 #5F1FA8
monochromatic
#413F0C #747115 #A8A31F #D8D22C #E2DD60

Accessibility & contrast

On white

2.65
#A8A31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#A8A31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A31F
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A31F#FFFFFF#000000##000000
##A8A31F1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B4A12B
Tritanopia (blue-blind)
#B5988B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a8a31f;
/* rgb */ color: rgb(168, 163, 31);
/* oklch */ color: oklch(69.8% 0.142 107.2);
Tailwind
colors: {
  custom: {
    50: '#c6bd68',
    500: '#a8a31f',
    950: '#000000',
  },
}
SCSS
$custom: #a8a31f;
$custom-light: #c6bd68;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a31f",
  "rgb": {
    "r": 168,
    "g": 163,
    "b": 31
  },
  "hsl": {
    "h": 57.81,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69786,
    "c": 0.14153,
    "h": 107.2
  },
  "luminance": 0.34618
}

Semantic roles & 50–950 ramp

primary
#A8A31F
secondary
#5D60C6
accent
#43EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A31F

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

Preview Lab → · Contrast checker → · Palette generator →

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