#7E7818#7E7818

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

Color values

HEX#7E7818
RGBrgb(126, 120, 24)
HSLhsl(56, 68%, 29%)
HSVhsv(56, 81%, 49%)
CMYKcmyk(0%, 4.8%, 81%, 50.6%)
CIE-LABlab(49.42, -8.88, 49.14)
CIE-LCHlch(49.42, 49.93, 100.25°)
OKLaboklab(56.09% -0.03 0.1069)
OKLCHoklch(56.09% 0.111 105.7)
XYZxyz(15.4862, 17.9351, 3.5101)
Luminance0.1794 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7818 #181E7E
analogous
#7E4518 #7E7818 #517E18
triadic
#7E7818 #187E78 #78187E
tetradic
#7E7818 #187E45 #181E7E #7E1851
square
#7E7818 #187E45 #181E7E #7E1851
split-complementary
#7E7818 #18517E #45187E
monochromatic
#1A1805 #4B470E #7E7818 #B1A922 #D9CF37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7818#FFFFFF#000000##000000
##7E78181.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)
#837300
Deuteranopia (green-blind)
#857720
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7818;
/* rgb */ color: rgb(126, 120, 24);
/* oklch */ color: oklch(56.1% 0.111 105.7);
Tailwind
colors: {
  custom: {
    50: '#a79e5e',
    500: '#7e7818',
    950: '#000000',
  },
}
SCSS
$custom: #7e7818;
$custom-light: #a79e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7818",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 56.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5609,
    "c": 0.11099,
    "h": 105.7
  },
  "luminance": 0.17935
}

Semantic roles & 50–950 ramp

primary
#7E7818
secondary
#3F46B2
accent
#47EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7818

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

Preview Lab → · Contrast checker → · Palette generator →

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