#7E892B#7E892B

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

Color values

HEX#7E892B
RGBrgb(126, 137, 43)
HSLhsl(67, 52%, 35%)
HSVhsv(67, 69%, 54%)
CMYKcmyk(8%, 0%, 68.6%, 46.3%)
CIE-LABlab(54.56, -17.06, 46.91)
CIE-LCHlch(54.56, 49.92, 109.98°)
OKLaboklab(60.24% -0.051 0.1057)
OKLCHoklch(60.24% 0.117 115.8)
XYZxyz(17.9863, 22.5016, 5.6808)
Luminance0.2250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E892B #362B89
analogous
#89652B #7E892B #4F892B
triadic
#7E892B #2B7E89 #892B7E
tetradic
#7E892B #2B8965 #362B89 #892B4F
square
#7E892B #2B8965 #362B89 #892B4F
split-complementary
#7E892B #2B4F89 #652B89
monochromatic
#282C0E #535A1C #7E892B #A9B83A #C1CD61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E892B#FFFFFF#000000##000000
##7E892B1.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)
#93821D
Deuteranopia (green-blind)
#928332
Tritanopia (blue-blind)
#868176
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e892b;
/* rgb */ color: rgb(126, 137, 43);
/* oklch */ color: oklch(60.2% 0.117 115.8);
Tailwind
colors: {
  custom: {
    50: '#a6ab6a',
    500: '#7e892b',
    950: '#000000',
  },
}
SCSS
$custom: #7e892b;
$custom-light: #a6ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e892b",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 43
  },
  "hsl": {
    "h": 67.021,
    "s": 52.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60237,
    "c": 0.11734,
    "h": 115.8
  },
  "luminance": 0.22501
}

Semantic roles & 50–950 ramp

primary
#7E892B
secondary
#675CB3
accent
#4CDC5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E892B

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

Preview Lab → · Contrast checker → · Palette generator →

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