#7E781B#7E781B

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

Color values

HEX#7E781B
RGBrgb(126, 120, 27)
HSLhsl(56, 65%, 30%)
HSVhsv(56, 79%, 49%)
CMYKcmyk(0%, 4.8%, 78.6%, 50.6%)
CIE-LABlab(49.43, -8.76, 48.13)
CIE-LCHlch(49.43, 48.92, 100.31°)
OKLaboklab(56.11% -0.0294 0.1053)
OKLCHoklch(56.11% 0.109 105.6)
XYZxyz(15.5191, 17.9483, 3.6836)
Luminance0.1795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E781B #1B217E
analogous
#7E471B #7E781B #527E1B
triadic
#7E781B #1B7E78 #781B7E
tetradic
#7E781B #1B7E47 #1B217E #7E1B52
square
#7E781B #1B7E47 #1B217E #7E1B52
split-complementary
#7E781B #1B527E #471B7E
monochromatic
#191805 #4C4810 #7E781B #B0A826 #D6CC3E

Accessibility & contrast

On white

4.58
#7E781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E781B#FFFFFF#000000##000000
##7E781B1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#837306
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e781b;
/* rgb */ color: rgb(126, 120, 27);
/* oklch */ color: oklch(56.1% 0.109 105.6);
Tailwind
colors: {
  custom: {
    50: '#a79e60',
    500: '#7e781b',
    950: '#000000',
  },
}
SCSS
$custom: #7e781b;
$custom-light: #a79e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e781b",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 56.364,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.56108,
    "c": 0.10934,
    "h": 105.6
  },
  "luminance": 0.17948
}

Semantic roles & 50–950 ramp

primary
#7E781B
secondary
#434AB2
accent
#4AE840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E781B

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

Preview Lab → · Contrast checker → · Palette generator →

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