#7E6918#7E6918

#7E6918 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.7% C 0.099 H 93.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7E6918
RGBrgb(126, 105, 24)
HSLhsl(48, 68%, 29%)
HSVhsv(48, 81%, 49%)
CMYKcmyk(0%, 16.7%, 81%, 50.6%)
CIE-LABlab(45.09, -0.38, 45.22)
CIE-LCHlch(45.09, 45.22, 90.49°)
OKLaboklab(52.66% -0.0061 0.0985)
OKLCHoklch(52.66% 0.099 93.5)
XYZxyz(13.8214, 14.6055, 2.9551)
Luminance0.1461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6918 #182D7E
analogous
#7E3618 #7E6918 #607E18
triadic
#7E6918 #187E69 #69187E
tetradic
#7E6918 #187E36 #182D7E #7E1860
square
#7E6918 #187E36 #182D7E #7E1860
split-complementary
#7E6918 #18607E #36187E
monochromatic
#1A1505 #4B3E0E #7E6918 #B19422 #D9B837

Accessibility & contrast

On white

5.36
#7E6918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7E6918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6918
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6918#FFFFFF#000000##FFFFFF
##7E69181.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756707
Deuteranopia (green-blind)
#7A6D1D
Tritanopia (blue-blind)
#89605A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e6918;
/* rgb */ color: rgb(126, 105, 24);
/* oklch */ color: oklch(52.7% 0.099 93.5);
Tailwind
colors: {
  custom: {
    50: '#a7935c',
    500: '#7e6918',
    950: '#000000',
  },
}
SCSS
$custom: #7e6918;
$custom-light: #a7935c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6918",
  "rgb": {
    "r": 126,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 47.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52656,
    "c": 0.09865,
    "h": 93.5
  },
  "luminance": 0.14605
}

Semantic roles & 50–950 ramp

primary
#7E6918
secondary
#3F57B2
accent
#61EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6918

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

Preview Lab → · Contrast checker → · Palette generator →

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