#A7B31E#A7B31E

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

Color values

HEX#A7B31E
RGBrgb(167, 179, 30)
HSLhsl(65, 71%, 41%)
HSVhsv(65, 83%, 70%)
CMYKcmyk(6.7%, 0%, 83.2%, 29.8%)
CIE-LABlab(69.86, -21.19, 66.59)
CIE-LCHlch(69.86, 69.88, 107.66°)
OKLaboklab(73.29% -0.0658 0.1437)
OKLCHoklch(73.29% 0.158 114.6)
XYZxyz(32.2918, 40.5501, 7.3539)
Luminance0.4055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B31E #2A1EB3
analogous
#B3741E #A7B31E #5CB31E
triadic
#A7B31E #1EA7B3 #B31EA7
tetradic
#A7B31E #1EB374 #2A1EB3 #B31E5C
square
#A7B31E #1EB374 #2A1EB3 #B31E5C
split-complementary
#A7B31E #1E5CB3 #741EB3
monochromatic
#454A0C #767F15 #A7B31E #CFDD32 #DBE566

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7B31E#FFFFFF#000000##000000
##A7B31E1.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)
#C0AC2E
Tritanopia (blue-blind)
#B3A899
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a7b31e;
/* rgb */ color: rgb(167, 179, 30);
/* oklch */ color: oklch(73.3% 0.158 114.6);
Tailwind
colors: {
  custom: {
    50: '#c5c96a',
    500: '#a7b31e',
    950: '#000000',
  },
}
SCSS
$custom: #a7b31e;
$custom-light: #c5c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b31e",
  "rgb": {
    "r": 167,
    "g": 179,
    "b": 30
  },
  "hsl": {
    "h": 64.832,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.73293,
    "c": 0.15806,
    "h": 114.6
  },
  "luminance": 0.40549
}

Semantic roles & 50–950 ramp

primary
#A7B31E
secondary
#6B62CB
accent
#3AEE48
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7B31E

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

Preview Lab → · Contrast checker → · Palette generator →

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