#7E781C#7E781C

#7E781C is a mid, moderate yellow. Relative luminance 0.180; 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#7E781C
RGBrgb(126, 120, 28)
HSLhsl(56, 64%, 30%)
HSVhsv(56, 78%, 49%)
CMYKcmyk(0%, 4.8%, 77.8%, 50.6%)
CIE-LABlab(49.44, -8.71, 47.78)
CIE-LCHlch(49.44, 48.57, 100.33°)
OKLaboklab(56.12% -0.0292 0.1048)
OKLCHoklch(56.12% 0.109 105.6)
XYZxyz(15.5309, 17.9530, 3.7456)
Luminance0.1795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E781C #1C227E
analogous
#7E471C #7E781C #537E1C
triadic
#7E781C #1C7E78 #781C7E
tetradic
#7E781C #1C7E47 #1C227E #7E1C53
square
#7E781C #1C7E47 #1C227E #7E1C53
split-complementary
#7E781C #1C537E #471C7E
monochromatic
#1A1906 #4C4811 #7E781C #B0A827 #D5CB40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E781C#FFFFFF#000000##000000
##7E781C1.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)
#837308
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#886F67
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e781c;
/* rgb */ color: rgb(126, 120, 28);
/* oklch */ color: oklch(56.1% 0.109 105.6);
Tailwind
colors: {
  custom: {
    50: '#a79e60',
    500: '#7e781c',
    950: '#000000',
  },
}
SCSS
$custom: #7e781c;
$custom-light: #a79e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e781c",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 56.327,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56115,
    "c": 0.10876,
    "h": 105.6
  },
  "luminance": 0.17952
}

Semantic roles & 50–950 ramp

primary
#7E781C
secondary
#444BB2
accent
#4BE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E781C

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

Preview Lab → · Contrast checker → · Palette generator →

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