#7A871A#7A871A

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

Color values

HEX#7A871A
RGBrgb(122, 135, 26)
HSLhsl(67, 68%, 32%)
HSVhsv(67, 81%, 53%)
CMYKcmyk(9.6%, 0%, 80.7%, 47.1%)
CIE-LABlab(53.54, -18.69, 52.07)
CIE-LCHlch(53.54, 55.32, 109.75°)
OKLaboklab(59.31% -0.0569 0.1137)
OKLCHoklch(59.31% 0.127 116.6)
XYZxyz(16.8769, 21.5403, 4.2457)
Luminance0.2154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A871A #271A87
analogous
#875E1A #7A871A #44871A
triadic
#7A871A #1A7A87 #871A7A
tetradic
#7A871A #1A875E #271A87 #871A44
square
#7A871A #1A875E #271A87 #871A44
split-complementary
#7A871A #1A4487 #5E1A87
monochromatic
#1D2006 #4C5410 #7A871A #A8BA24 #C8DA41

Accessibility & contrast

On white

3.96
#7A871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A871A#FFFFFF#000000##000000
##7A871A1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#908125
Tritanopia (blue-blind)
#827F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7a871a;
/* rgb */ color: rgb(122, 135, 26);
/* oklch */ color: oklch(59.3% 0.127 116.6);
Tailwind
colors: {
  custom: {
    50: '#a4a961',
    500: '#7a871a',
    950: '#000000',
  },
}
SCSS
$custom: #7a871a;
$custom-light: #a4a961;
$custom-dark: #000000;
JSON
{
  "hex": "#7a871a",
  "rgb": {
    "r": 122,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 67.156,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59306,
    "c": 0.1271,
    "h": 116.6
  },
  "luminance": 0.2154
}

Semantic roles & 50–950 ramp

primary
#7A871A
secondary
#5142BA
accent
#3DEB52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7A871A

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

Preview Lab → · Contrast checker → · Palette generator →

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