#7A871F#7A871F

#7A871F is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.3% C 0.124 H 116.7°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7A871F
RGBrgb(122, 135, 31)
HSLhsl(68, 63%, 33%)
HSVhsv(68, 77%, 53%)
CMYKcmyk(9.6%, 0%, 77%, 47.1%)
CIE-LABlab(53.56, -18.47, 50.45)
CIE-LCHlch(53.56, 53.72, 110.11°)
OKLaboklab(59.34% -0.0558 0.1112)
OKLCHoklch(59.34% 0.124 116.7)
XYZxyz(16.9378, 21.5647, 4.5662)
Luminance0.2156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A871F #2C1F87
analogous
#87601F #7A871F #46871F
triadic
#7A871F #1F7A87 #871F7A
tetradic
#7A871F #1F8760 #2C1F87 #871F46
square
#7A871F #1F8760 #2C1F87 #871F46
split-complementary
#7A871F #1F4687 #601F87
monochromatic
#202308 #4D5514 #7A871F #A7B92A #C4D64B

Accessibility & contrast

On white

3.95
#7A871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#7A871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A871F
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A871F#FFFFFF#000000##000000
##7A871F1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#918007
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#827F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7a871f;
/* rgb */ color: rgb(122, 135, 31);
/* oklch */ color: oklch(59.3% 0.124 116.7);
Tailwind
colors: {
  custom: {
    50: '#a4a963',
    500: '#7a871f',
    950: '#000000',
  },
}
SCSS
$custom: #7a871f;
$custom-light: #a4a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7a871f",
  "rgb": {
    "r": 122,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 67.5,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59335,
    "c": 0.12438,
    "h": 116.7
  },
  "luminance": 0.21564
}

Semantic roles & 50–950 ramp

primary
#7A871F
secondary
#574AB8
accent
#42E657
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7A871F

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

Preview Lab → · Contrast checker → · Palette generator →

#7A871F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva