#7E892D#7E892D

#7E892D is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.3% C 0.116 H 115.8°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7E892D
RGBrgb(126, 137, 45)
HSLhsl(67, 51%, 36%)
HSVhsv(67, 67%, 54%)
CMYKcmyk(8%, 0%, 67.2%, 46.3%)
CIE-LABlab(54.57, -16.93, 46.08)
CIE-LCHlch(54.57, 49.09, 110.17°)
OKLaboklab(60.26% -0.0504 0.1043)
OKLCHoklch(60.26% 0.116 115.8)
XYZxyz(18.0239, 22.5167, 5.8788)
Luminance0.2252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E892D #382D89
analogous
#89662D #7E892D #50892D
triadic
#7E892D #2D7E89 #892D7E
tetradic
#7E892D #2D8966 #382D89 #892D50
square
#7E892D #2D8966 #382D89 #892D50
split-complementary
#7E892D #2D5089 #662D89
monochromatic
#292D0F #545B1E #7E892D #A8B73C #C0CC64

Accessibility & contrast

On white

3.82
#7E892D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7E892D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E892D
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E892D#FFFFFF#000000##000000
##7E892D1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938220
Deuteranopia (green-blind)
#928333
Tritanopia (blue-blind)
#868176
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e892d;
/* rgb */ color: rgb(126, 137, 45);
/* oklch */ color: oklch(60.3% 0.116 115.8);
Tailwind
colors: {
  custom: {
    50: '#a6ab6b',
    500: '#7e892d',
    950: '#000000',
  },
}
SCSS
$custom: #7e892d;
$custom-light: #a6ab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e892d",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 45
  },
  "hsl": {
    "h": 67.174,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60255,
    "c": 0.11581,
    "h": 115.8
  },
  "luminance": 0.22516
}

Semantic roles & 50–950 ramp

primary
#7E892D
secondary
#695FB3
accent
#4EDA5F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E892D

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

Preview Lab → · Contrast checker → · Palette generator →

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