#7E6F18#7E6F18

#7E6F18 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.0% C 0.103 H 98.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7E6F18
RGBrgb(126, 111, 24)
HSLhsl(51, 68%, 29%)
HSVhsv(51, 81%, 49%)
CMYKcmyk(0%, 11.9%, 81%, 50.6%)
CIE-LABlab(46.81, -3.83, 46.78)
CIE-LCHlch(46.81, 46.94, 94.68°)
OKLaboklab(54.01% -0.0158 0.1018)
OKLCHoklch(54.01% 0.103 98.8)
XYZxyz(14.4542, 15.8712, 3.1661)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6F18 #18277E
analogous
#7E3C18 #7E6F18 #5A7E18
triadic
#7E6F18 #187E6F #6F187E
tetradic
#7E6F18 #187E3C #18277E #7E185A
square
#7E6F18 #187E3C #18277E #7E185A
split-complementary
#7E6F18 #185A7E #3C187E
monochromatic
#1A1705 #4B420E #7E6F18 #B19C22 #D9C137

Accessibility & contrast

On white

5.03
#7E6F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7E6F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6F18
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6F18#FFFFFF#000000##FFFFFF
##7E6F181.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C04
Deuteranopia (green-blind)
#7F711E
Tritanopia (blue-blind)
#88665F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e6f18;
/* rgb */ color: rgb(126, 111, 24);
/* oklch */ color: oklch(54.0% 0.103 98.8);
Tailwind
colors: {
  custom: {
    50: '#a7985d',
    500: '#7e6f18',
    950: '#000000',
  },
}
SCSS
$custom: #7e6f18;
$custom-light: #a7985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6f18",
  "rgb": {
    "r": 126,
    "g": 111,
    "b": 24
  },
  "hsl": {
    "h": 51.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54014,
    "c": 0.10302,
    "h": 98.8
  },
  "luminance": 0.1587
}

Semantic roles & 50–950 ramp

primary
#7E6F18
secondary
#3F50B2
accent
#57EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7E6F18

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

Preview Lab → · Contrast checker → · Palette generator →

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