#A7A81F#A7A81F

#A7A81F is a light, vivid yellow. Relative luminance 0.363; OKLCH L 70.8% C 0.146 H 110.1°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#A7A81F
RGBrgb(167, 168, 31)
HSLhsl(60, 69%, 39%)
HSVhsv(60, 82%, 66%)
CMYKcmyk(0.6%, 0%, 81.5%, 34.1%)
CIE-LABlab(66.76, -15.60, 63.67)
CIE-LCHlch(66.76, 65.56, 103.77°)
OKLaboklab(70.81% -0.0503 0.1376)
OKLCHoklch(70.81% 0.147 110.1)
XYZxyz(30.1875, 36.3206, 6.7165)
Luminance0.3632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A81F #201FA8
analogous
#A8651F #A7A81F #63A81F
triadic
#A7A81F #1FA7A8 #A81FA7
tetradic
#A7A81F #1FA865 #201FA8 #A81F63
square
#A7A81F #1FA865 #201FA8 #A81F63
split-complementary
#A7A81F #1F63A8 #651FA8
monochromatic
#40410C #747415 #A7A81F #D7D82C #E1E260

Accessibility & contrast

On white

2.54
#A7A81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#A7A81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A81F
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A81F#FFFFFF#000000##000000
##A7A81F1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#B7A42C
Tritanopia (blue-blind)
#B39D8F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a7a81f;
/* rgb */ color: rgb(167, 168, 31);
/* oklch */ color: oklch(70.8% 0.146 110.1);
Tailwind
colors: {
  custom: {
    50: '#c5c169',
    500: '#a7a81f',
    950: '#000000',
  },
}
SCSS
$custom: #a7a81f;
$custom-light: #c5c169;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a81f",
  "rgb": {
    "r": 167,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 60.438,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.70814,
    "c": 0.1465,
    "h": 110.1
  },
  "luminance": 0.3632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A7A81F

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

Preview Lab → · Contrast checker → · Palette generator →

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