#7E781E#7E781E

#7E781E is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.1% C 0.108 H 105.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7E781E
RGBrgb(126, 120, 30)
HSLhsl(56, 62%, 31%)
HSVhsv(56, 76%, 49%)
CMYKcmyk(0%, 4.8%, 76.2%, 50.6%)
CIE-LABlab(49.45, -8.62, 47.06)
CIE-LCHlch(49.45, 47.84, 100.38°)
OKLaboklab(56.13% -0.0287 0.1036)
OKLCHoklch(56.13% 0.108 105.5)
XYZxyz(15.5556, 17.9629, 3.8758)
Luminance0.1796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E781E #1E247E
analogous
#7E481E #7E781E #547E1E
triadic
#7E781E #1E7E78 #781E7E
tetradic
#7E781E #1E7E48 #1E247E #7E1E54
square
#7E781E #1E7E48 #1E247E #7E1E54
split-complementary
#7E781E #1E547E #481E7E
monochromatic
#1B1A06 #4D4912 #7E781E #AFA72A #D2CA44

Accessibility & contrast

On white

4.57
#7E781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#7E781E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E781E
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E781E#FFFFFF#000000##000000
##7E781E1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#83730C
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#886F67
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e781e;
/* rgb */ color: rgb(126, 120, 30);
/* oklch */ color: oklch(56.1% 0.108 105.5);
Tailwind
colors: {
  custom: {
    50: '#a79e61',
    500: '#7e781e',
    950: '#000000',
  },
}
SCSS
$custom: #7e781e;
$custom-light: #a79e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e781e",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 56.25,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56128,
    "c": 0.10753,
    "h": 105.5
  },
  "luminance": 0.17962
}

Semantic roles & 50–950 ramp

primary
#7E781E
secondary
#474DB1
accent
#4DE543
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E781E

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

Preview Lab → · Contrast checker → · Palette generator →

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