#7E893B#7E893B

#7E893B is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.4% C 0.103 H 116.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7E893B
RGBrgb(126, 137, 59)
HSLhsl(68, 40%, 38%)
HSVhsv(68, 57%, 54%)
CMYKcmyk(8%, 0%, 56.9%, 46.3%)
CIE-LABlab(54.70, -15.83, 39.77)
CIE-LCHlch(54.70, 42.80, 111.70°)
OKLaboklab(60.4% -0.0458 0.0928)
OKLCHoklch(60.4% 0.103 116.3)
XYZxyz(18.3396, 22.6429, 7.5412)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E893B #463B89
analogous
#896D3B #7E893B #57893B
triadic
#7E893B #3B7E89 #893B7E
tetradic
#7E893B #3B896D #463B89 #893B57
square
#7E893B #3B896D #463B89 #893B57
split-complementary
#7E893B #3B5789 #6D3B89
monochromatic
#2F3316 #575E29 #7E893B #A5B34E #BBC579

Accessibility & contrast

On white

3.80
#7E893B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7E893B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E893B
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E893B#FFFFFF#000000##000000
##7E893B1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928233
Deuteranopia (green-blind)
#918340
Tritanopia (blue-blind)
#858278
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e893b;
/* rgb */ color: rgb(126, 137, 59);
/* oklch */ color: oklch(60.4% 0.103 116.3);
Tailwind
colors: {
  custom: {
    50: '#a5ab74',
    500: '#7e893b',
    950: '#000000',
  },
}
SCSS
$custom: #7e893b;
$custom-light: #a5ab74;
$custom-dark: #000000;
JSON
{
  "hex": "#7e893b",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 59
  },
  "hsl": {
    "h": 68.462,
    "s": 39.796,
    "l": 38.431
  },
  "oklch": {
    "l": 0.60403,
    "c": 0.10346,
    "h": 116.3
  },
  "luminance": 0.22643
}

Semantic roles & 50–950 ramp

primary
#7E893B
secondary
#7A71AF
accent
#58D069
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #7E893B

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

Preview Lab → · Contrast checker → · Palette generator →

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