#7E7813#7E7813

#7E7813 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#7E7813
RGBrgb(126, 120, 19)
HSLhsl(57, 74%, 28%)
HSVhsv(57, 85%, 49%)
CMYKcmyk(0%, 4.8%, 84.9%, 50.6%)
CIE-LABlab(49.39, -9.06, 50.64)
CIE-LCHlch(49.39, 51.44, 100.14°)
OKLaboklab(56.07% -0.0309 0.1091)
OKLCHoklch(56.07% 0.113 105.8)
XYZxyz(15.4389, 17.9162, 3.2609)
Luminance0.1792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7813 #13197E
analogous
#7E4313 #7E7813 #4E7E13
triadic
#7E7813 #137E78 #78137E
tetradic
#7E7813 #137E43 #13197E #7E134E
square
#7E7813 #137E43 #13197E #7E134E
split-complementary
#7E7813 #134E7E #43137E
monochromatic
#1B1904 #49450B #7E7813 #B3AB1B #DFD52C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7813#FFFFFF#000000##000000
##7E78131.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)
#86771C
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7813;
/* rgb */ color: rgb(126, 120, 19);
/* oklch */ color: oklch(56.1% 0.113 105.8);
Tailwind
colors: {
  custom: {
    50: '#a79e5c',
    500: '#7e7813',
    950: '#000000',
  },
}
SCSS
$custom: #7e7813;
$custom-light: #a79e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7813",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 19
  },
  "hsl": {
    "h": 56.636,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56065,
    "c": 0.11338,
    "h": 105.8
  },
  "luminance": 0.17916
}

Semantic roles & 50–950 ramp

primary
#7E7813
secondary
#3940B4
accent
#42F037
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7813

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

Preview Lab → · Contrast checker → · Palette generator →

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