#A7A31E#A7A31E

#A7A31E is a light, vivid yellow. Relative luminance 0.345; OKLCH L 69.7% C 0.142 H 107.7°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#A7A31E
RGBrgb(167, 163, 30)
HSLhsl(58, 70%, 39%)
HSVhsv(58, 82%, 65%)
CMYKcmyk(0%, 2.4%, 82%, 34.5%)
CIE-LABlab(65.36, -13.05, 62.73)
CIE-LCHlch(65.36, 64.08, 101.75°)
OKLaboklab(69.69% -0.0433 0.1354)
OKLCHoklch(69.69% 0.142 107.7)
XYZxyz(29.2691, 34.5046, 6.3463)
Luminance0.3450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A31E #1E22A7
analogous
#A75E1E #A7A31E #66A71E
triadic
#A7A31E #1EA7A3 #A31EA7
tetradic
#A7A31E #1EA75E #1E22A7 #A71E66
square
#A7A31E #1EA75E #1E22A7 #A71E66
split-complementary
#A7A31E #1E66A7 #5E1EA7
monochromatic
#3F3E0B #737015 #A7A31E #D9D42A #E2DE5D

Accessibility & contrast

On white

2.66
#A7A31E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#A7A31E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A31E
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A31E#FFFFFF#000000##000000
##A7A31E1.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B4A12B
Tritanopia (blue-blind)
#B4988B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a7a31e;
/* rgb */ color: rgb(167, 163, 30);
/* oklch */ color: oklch(69.7% 0.142 107.7);
Tailwind
colors: {
  custom: {
    50: '#c5bd68',
    500: '#a7a31e',
    950: '#000000',
  },
}
SCSS
$custom: #a7a31e;
$custom-light: #c5bd68;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a31e",
  "rgb": {
    "r": 167,
    "g": 163,
    "b": 30
  },
  "hsl": {
    "h": 58.248,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.69692,
    "c": 0.14213,
    "h": 107.7
  },
  "luminance": 0.34504
}

Semantic roles & 50–950 ramp

primary
#A7A31E
secondary
#5B5EC6
accent
#41EC3B
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A31E

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

Preview Lab → · Contrast checker → · Palette generator →

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