#A7B31B#A7B31B

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

Color values

HEX#A7B31B
RGBrgb(167, 179, 27)
HSLhsl(65, 74%, 40%)
HSVhsv(65, 85%, 70%)
CMYKcmyk(6.7%, 0%, 84.9%, 29.8%)
CIE-LABlab(69.85, -21.28, 67.28)
CIE-LCHlch(69.85, 70.57, 107.55°)
OKLaboklab(73.28% -0.0662 0.1447)
OKLCHoklch(73.28% 0.159 114.6)
XYZxyz(32.2553, 40.5355, 7.1617)
Luminance0.4053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B31B #271BB3
analogous
#B3731B #A7B31B #5BB31B
triadic
#A7B31B #1BA7B3 #B31BA7
tetradic
#A7B31B #1BB373 #271BB3 #B31B5B
square
#A7B31B #1BB373 #271BB3 #B31B5B
split-complementary
#A7B31B #1B5BB3 #731BB3
monochromatic
#44490B #757E13 #A7B31B #D1DF2C #DDE761

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7B31B#FFFFFF#000000##000000
##A7B31B1.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: #a7b31b;
/* rgb */ color: rgb(167, 179, 27);
/* oklch */ color: oklch(73.3% 0.159 114.6);
Tailwind
colors: {
  custom: {
    50: '#c5c969',
    500: '#a7b31b',
    950: '#000000',
  },
}
SCSS
$custom: #a7b31b;
$custom-light: #c5c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b31b",
  "rgb": {
    "r": 167,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 64.737,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.73281,
    "c": 0.15916,
    "h": 114.6
  },
  "luminance": 0.40535
}

Semantic roles & 50–950 ramp

primary
#A7B31B
secondary
#675ECC
accent
#37F046
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7B31B

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

Preview Lab → · Contrast checker → · Palette generator →

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