#7E781F#7E781F

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

Color values

HEX#7E781F
RGBrgb(126, 120, 31)
HSLhsl(56, 61%, 31%)
HSVhsv(56, 75%, 49%)
CMYKcmyk(0%, 4.8%, 75.4%, 50.6%)
CIE-LABlab(49.46, -8.57, 46.68)
CIE-LCHlch(49.46, 47.46, 100.40°)
OKLaboklab(56.14% -0.0285 0.103)
OKLCHoklch(56.14% 0.107 105.4)
XYZxyz(15.5686, 17.9681, 3.9442)
Luminance0.1797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E781F #1F257E
analogous
#7E481F #7E781F #547E1F
triadic
#7E781F #1F7E78 #781F7E
tetradic
#7E781F #1F7E48 #1F257E #7E1F54
square
#7E781F #1F7E48 #1F257E #7E1F54
split-complementary
#7E781F #1F547E #481F7E
monochromatic
#1C1A07 #4D4913 #7E781F #AFA72B #D1C946

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E781F#FFFFFF#000000##000000
##7E781F1.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)
#83730E
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#886F67
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e781f;
/* rgb */ color: rgb(126, 120, 31);
/* oklch */ color: oklch(56.1% 0.107 105.4);
Tailwind
colors: {
  custom: {
    50: '#a69e62',
    500: '#7e781f',
    950: '#000000',
  },
}
SCSS
$custom: #7e781f;
$custom-light: #a69e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e781f",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 56.211,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56135,
    "c": 0.1069,
    "h": 105.4
  },
  "luminance": 0.17967
}

Semantic roles & 50–950 ramp

primary
#7E781F
secondary
#484EB1
accent
#4EE444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E781F

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

Preview Lab → · Contrast checker → · Palette generator →

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