#7E7814#7E7814

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

Color values

HEX#7E7814
RGBrgb(126, 120, 20)
HSLhsl(57, 73%, 29%)
HSVhsv(57, 84%, 49%)
CMYKcmyk(0%, 4.8%, 84.1%, 50.6%)
CIE-LABlab(49.40, -9.03, 50.36)
CIE-LCHlch(49.40, 51.16, 100.16°)
OKLaboklab(56.07% -0.0308 0.1087)
OKLCHoklch(56.07% 0.113 105.8)
XYZxyz(15.4476, 17.9197, 3.3068)
Luminance0.1792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7814 #141A7E
analogous
#7E4314 #7E7814 #4F7E14
triadic
#7E7814 #147E78 #78147E
tetradic
#7E7814 #147E43 #141A7E #7E144F
square
#7E7814 #147E43 #141A7E #7E144F
split-complementary
#7E7814 #144F7E #43147E
monochromatic
#1A1904 #49460C #7E7814 #B3AA1C #DED42E

Accessibility & contrast

On white

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

On black

4.58
#7E7814 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7814
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7814#FFFFFF#000000##000000
##7E78141.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#86771D
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7814;
/* rgb */ color: rgb(126, 120, 20);
/* oklch */ color: oklch(56.1% 0.113 105.8);
Tailwind
colors: {
  custom: {
    50: '#a79e5d',
    500: '#7e7814',
    950: '#000000',
  },
}
SCSS
$custom: #7e7814;
$custom-light: #a79e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7814",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 20
  },
  "hsl": {
    "h": 56.604,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56069,
    "c": 0.11294,
    "h": 105.8
  },
  "luminance": 0.17919
}

Semantic roles & 50–950 ramp

primary
#7E7814
secondary
#3A41B3
accent
#43EF38
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7814

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

Preview Lab → · Contrast checker → · Palette generator →

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