#7E781D#7E781D

#7E781D 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#7E781D
RGBrgb(126, 120, 29)
HSLhsl(56, 63%, 30%)
HSVhsv(56, 77%, 49%)
CMYKcmyk(0%, 4.8%, 77%, 50.6%)
CIE-LABlab(49.45, -8.67, 47.42)
CIE-LCHlch(49.45, 48.21, 100.36°)
OKLaboklab(56.12% -0.0289 0.1042)
OKLCHoklch(56.12% 0.108 105.5)
XYZxyz(15.5431, 17.9579, 3.8096)
Luminance0.1796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E781D #1D237E
analogous
#7E481D #7E781D #537E1D
triadic
#7E781D #1D7E78 #781D7E
tetradic
#7E781D #1D7E48 #1D237E #7E1D53
square
#7E781D #1D7E48 #1D237E #7E1D53
split-complementary
#7E781D #1D537E #481D7E
monochromatic
#1B1906 #4C4912 #7E781D #B0A728 #D3CA42

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E781D#FFFFFF#000000##000000
##7E781D1.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)
#83730A
Deuteranopia (green-blind)
#857724
Tritanopia (blue-blind)
#886F67
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e781d;
/* rgb */ color: rgb(126, 120, 29);
/* oklch */ color: oklch(56.1% 0.108 105.5);
Tailwind
colors: {
  custom: {
    50: '#a79e61',
    500: '#7e781d',
    950: '#000000',
  },
}
SCSS
$custom: #7e781d;
$custom-light: #a79e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e781d",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 56.289,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56121,
    "c": 0.10816,
    "h": 105.5
  },
  "luminance": 0.17957
}

Semantic roles & 50–950 ramp

primary
#7E781D
secondary
#454CB1
accent
#4CE642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E781D

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

Preview Lab → · Contrast checker → · Palette generator →

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