#7A862D#7A862D

#7A862D is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.113 H 116.5°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7A862D
RGBrgb(122, 134, 45)
HSLhsl(68, 50%, 35%)
HSVhsv(68, 66%, 53%)
CMYKcmyk(9%, 0%, 66.4%, 47.5%)
CIE-LABlab(53.36, -17.11, 44.72)
CIE-LCHlch(53.36, 47.88, 110.94°)
OKLaboklab(59.2% -0.0507 0.1015)
OKLCHoklch(59.2% 0.113 116.5)
XYZxyz(17.0252, 21.3774, 5.7115)
Luminance0.2138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A862D #392D86
analogous
#86662D #7A862D #4D862D
triadic
#7A862D #2D7A86 #862D7A
tetradic
#7A862D #2D8666 #392D86 #862D4D
square
#7A862D #2D8666 #392D86 #862D4D
split-complementary
#7A862D #2D4D86 #662D86
monochromatic
#272A0E #50581E #7A862D #A4B43C #BDCB63

Accessibility & contrast

On white

3.98
#7A862D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#7A862D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A862D
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A862D#FFFFFF#000000##000000
##7A862D1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F21
Deuteranopia (green-blind)
#8E8033
Tritanopia (blue-blind)
#817F74
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7a862d;
/* rgb */ color: rgb(122, 134, 45);
/* oklch */ color: oklch(59.2% 0.113 116.5);
Tailwind
colors: {
  custom: {
    50: '#a3a96b',
    500: '#7a862d',
    950: '#000000',
  },
}
SCSS
$custom: #7a862d;
$custom-light: #a3a96b;
$custom-dark: #000000;
JSON
{
  "hex": "#7a862d",
  "rgb": {
    "r": 122,
    "g": 134,
    "b": 45
  },
  "hsl": {
    "h": 68.09,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59204,
    "c": 0.11344,
    "h": 116.5
  },
  "luminance": 0.21377
}

Semantic roles & 50–950 ramp

primary
#7A862D
secondary
#695EB1
accent
#4FD961
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7A862D

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

Preview Lab → · Contrast checker → · Palette generator →

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