#A7B31A#A7B31A

#A7B31A is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.3% C 0.160 H 114.6°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#A7B31A
RGBrgb(167, 179, 26)
HSLhsl(65, 75%, 40%)
HSVhsv(65, 85%, 70%)
CMYKcmyk(6.7%, 0%, 85.5%, 29.8%)
CIE-LABlab(69.85, -21.31, 67.50)
CIE-LCHlch(69.85, 70.79, 107.52°)
OKLaboklab(73.28% -0.0663 0.1451)
OKLCHoklch(73.28% 0.16 114.6)
XYZxyz(32.2439, 40.5309, 7.1018)
Luminance0.4053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B31A #261AB3
analogous
#B3731A #A7B31A #5AB31A
triadic
#A7B31A #1AA7B3 #B31AA7
tetradic
#A7B31A #1AB373 #261AB3 #B31A5A
square
#A7B31A #1AB373 #261AB3 #B31A5A
split-complementary
#A7B31A #1A5AB3 #731AB3
monochromatic
#43480A #757E12 #A7B31A #D2E02A #DDE860

Accessibility & contrast

On white

2.31
#A7B31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#A7B31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B31A
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B31A#FFFFFF#000000##000000
##A7B31A1.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C0AC2C
Tritanopia (blue-blind)
#B3A899
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a7b31a;
/* rgb */ color: rgb(167, 179, 26);
/* oklch */ color: oklch(73.3% 0.160 114.6);
Tailwind
colors: {
  custom: {
    50: '#c5c969',
    500: '#a7b31a',
    950: '#000000',
  },
}
SCSS
$custom: #a7b31a;
$custom-light: #c5c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b31a",
  "rgb": {
    "r": 167,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 64.706,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.73278,
    "c": 0.15951,
    "h": 114.6
  },
  "luminance": 0.4053
}

Semantic roles & 50–950 ramp

primary
#A7B31A
secondary
#655DCC
accent
#37F145
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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