#A7B31F#A7B31F

#A7B31F is a light, vivid yellow. Relative luminance 0.406; 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#A7B31F
RGBrgb(167, 179, 31)
HSLhsl(65, 70%, 41%)
HSVhsv(65, 83%, 70%)
CMYKcmyk(6.7%, 0%, 82.7%, 29.8%)
CIE-LABlab(69.86, -21.16, 66.34)
CIE-LCHlch(69.86, 69.63, 107.69°)
OKLaboklab(73.3% -0.0656 0.1434)
OKLCHoklch(73.3% 0.158 114.6)
XYZxyz(32.3048, 40.5552, 7.4222)
Luminance0.4056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B31F #2B1FB3
analogous
#B3751F #A7B31F #5DB31F
triadic
#A7B31F #1FA7B3 #B31FA7
tetradic
#A7B31F #1FB375 #2B1FB3 #B31F5D
square
#A7B31F #1FB375 #2B1FB3 #B31F5D
split-complementary
#A7B31F #1F5DB3 #751FB3
monochromatic
#464B0D #767F16 #A7B31F #CEDC33 #DBE568

Accessibility & contrast

On white

2.30
#A7B31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7B31F#FFFFFF#000000##000000
##A7B31F1.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7b31f;
/* rgb */ color: rgb(167, 179, 31);
/* oklch */ color: oklch(73.3% 0.158 114.6);
Tailwind
colors: {
  custom: {
    50: '#c5c96b',
    500: '#a7b31f',
    950: '#000000',
  },
}
SCSS
$custom: #a7b31f;
$custom-light: #c5c96b;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b31f",
  "rgb": {
    "r": 167,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 64.865,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73297,
    "c": 0.15767,
    "h": 114.6
  },
  "luminance": 0.40555
}

Semantic roles & 50–950 ramp

primary
#A7B31F
secondary
#6C64CA
accent
#3BED49
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7B31F

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

Preview Lab → · Contrast checker → · Palette generator →

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