#7E6818#7E6818

#7E6818 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.4% C 0.098 H 92.6°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7E6818
RGBrgb(126, 104, 24)
HSLhsl(47, 68%, 29%)
HSVhsv(47, 81%, 49%)
CMYKcmyk(0%, 17.5%, 81%, 50.6%)
CIE-LABlab(44.81, 0.20, 44.96)
CIE-LCHlch(44.81, 44.96, 89.75°)
OKLaboklab(52.43% -0.0044 0.0979)
OKLCHoklch(52.43% 0.098 92.6)
XYZxyz(13.7202, 14.4030, 2.9214)
Luminance0.1440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6818 #182E7E
analogous
#7E3518 #7E6818 #617E18
triadic
#7E6818 #187E68 #68187E
tetradic
#7E6818 #187E35 #182E7E #7E1861
square
#7E6818 #187E35 #182E7E #7E1861
split-complementary
#7E6818 #18617E #35187E
monochromatic
#1A1505 #4B3E0E #7E6818 #B19222 #D9B637

Accessibility & contrast

On white

5.41
#7E6818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7E6818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6818
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6818#FFFFFF#000000##FFFFFF
##7E68181.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746607
Deuteranopia (green-blind)
#7A6D1D
Tritanopia (blue-blind)
#895F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e6818;
/* rgb */ color: rgb(126, 104, 24);
/* oklch */ color: oklch(52.4% 0.098 92.6);
Tailwind
colors: {
  custom: {
    50: '#a7925c',
    500: '#7e6818',
    950: '#000000',
  },
}
SCSS
$custom: #7e6818;
$custom-light: #a7925c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6818",
  "rgb": {
    "r": 126,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 47.059,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52432,
    "c": 0.098,
    "h": 92.6
  },
  "luminance": 0.14402
}

Semantic roles & 50–950 ramp

primary
#7E6818
secondary
#3F58B2
accent
#62EB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7E6818

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

Preview Lab → · Contrast checker → · Palette generator →

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