#7A871D#7A871D

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

Color values

HEX#7A871D
RGBrgb(122, 135, 29)
HSLhsl(67, 65%, 32%)
HSVhsv(67, 79%, 53%)
CMYKcmyk(9.6%, 0%, 78.5%, 47.1%)
CIE-LABlab(53.55, -18.56, 51.12)
CIE-LCHlch(53.55, 54.38, 109.96°)
OKLaboklab(59.32% -0.0563 0.1122)
OKLCHoklch(59.32% 0.126 116.6)
XYZxyz(16.9122, 21.5545, 4.4317)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A871D #2A1D87
analogous
#875F1D #7A871D #45871D
triadic
#7A871D #1D7A87 #871D7A
tetradic
#7A871D #1D875F #2A1D87 #871D45
square
#7A871D #1D875F #2A1D87 #871D45
split-complementary
#7A871D #1D4587 #5F1D87
monochromatic
#1F2207 #4C5512 #7A871D #A8B928 #C6D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A871D#FFFFFF#000000##000000
##7A871D1.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)
#917F02
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#827F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7a871d;
/* rgb */ color: rgb(122, 135, 29);
/* oklch */ color: oklch(59.3% 0.126 116.6);
Tailwind
colors: {
  custom: {
    50: '#a4a963',
    500: '#7a871d',
    950: '#000000',
  },
}
SCSS
$custom: #7a871d;
$custom-light: #a4a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7a871d",
  "rgb": {
    "r": 122,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 67.358,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59323,
    "c": 0.12552,
    "h": 116.6
  },
  "luminance": 0.21554
}

Semantic roles & 50–950 ramp

primary
#7A871D
secondary
#5446B9
accent
#40E855
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7A871D

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

Preview Lab → · Contrast checker → · Palette generator →

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