#7E891F#7E891F

#7E891F is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.125 H 115.5°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7E891F
RGBrgb(126, 137, 31)
HSLhsl(66, 63%, 33%)
HSVhsv(66, 77%, 54%)
CMYKcmyk(8%, 0%, 77.4%, 46.3%)
CIE-LABlab(54.48, -17.73, 51.42)
CIE-LCHlch(54.48, 54.39, 109.02°)
OKLaboklab(60.15% -0.054 0.1131)
OKLCHoklch(60.15% 0.125 115.5)
XYZxyz(17.7977, 22.4262, 4.6872)
Luminance0.2243 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E891F #2A1F89
analogous
#895F1F #7E891F #49891F
triadic
#7E891F #1F7E89 #891F7E
tetradic
#7E891F #1F895F #2A1F89 #891F49
square
#7E891F #1F895F #2A1F89 #891F49
split-complementary
#7E891F #1F4989 #5F1F89
monochromatic
#222508 #505714 #7E891F #ACBB2A #C8D64C

Accessibility & contrast

On white

3.83
#7E891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7E891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E891F
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E891F#FFFFFF#000000##000000
##7E891F1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938205
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#868175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e891f;
/* rgb */ color: rgb(126, 137, 31);
/* oklch */ color: oklch(60.1% 0.125 115.5);
Tailwind
colors: {
  custom: {
    50: '#a7ab64',
    500: '#7e891f',
    950: '#000000',
  },
}
SCSS
$custom: #7e891f;
$custom-light: #a7ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e891f",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 66.226,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60149,
    "c": 0.12529,
    "h": 115.5
  },
  "luminance": 0.22426
}

Semantic roles & 50–950 ramp

primary
#7E891F
secondary
#564BB9
accent
#42E653
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E891F

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

Preview Lab → · Contrast checker → · Palette generator →

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