#A7B31C#A7B31C

#A7B31C 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#A7B31C
RGBrgb(167, 179, 28)
HSLhsl(65, 73%, 41%)
HSVhsv(65, 84%, 70%)
CMYKcmyk(6.7%, 0%, 84.4%, 29.8%)
CIE-LABlab(69.85, -21.25, 67.06)
CIE-LCHlch(69.85, 70.34, 107.59°)
OKLaboklab(73.29% -0.0661 0.1444)
OKLCHoklch(73.29% 0.159 114.6)
XYZxyz(32.2671, 40.5402, 7.2236)
Luminance0.4054 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B31C #281CB3
analogous
#B3731C #A7B31C #5BB31C
triadic
#A7B31C #1CA7B3 #B31CA7
tetradic
#A7B31C #1CB373 #281CB3 #B31C5B
square
#A7B31C #1CB373 #281CB3 #B31C5B
split-complementary
#A7B31C #1C5BB3 #731CB3
monochromatic
#44490B #767E14 #A7B31C #D0DE2E #DCE763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #a7b31c;
/* rgb */ color: rgb(167, 179, 28);
/* oklch */ color: oklch(73.3% 0.159 114.6);
Tailwind
colors: {
  custom: {
    50: '#c5c96a',
    500: '#a7b31c',
    950: '#000000',
  },
}
SCSS
$custom: #a7b31c;
$custom-light: #c5c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b31c",
  "rgb": {
    "r": 167,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 64.768,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.73285,
    "c": 0.15881,
    "h": 114.6
  },
  "luminance": 0.4054
}

Semantic roles & 50–950 ramp

primary
#A7B31C
secondary
#685FCB
accent
#38F047
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7B31C

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

Preview Lab → · Contrast checker → · Palette generator →

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