#7E6F12#7E6F12

#7E6F12 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 54.0% C 0.106 H 99.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E6F12
RGBrgb(126, 111, 18)
HSLhsl(52, 75%, 28%)
HSVhsv(52, 86%, 49%)
CMYKcmyk(0%, 11.9%, 85.7%, 50.6%)
CIE-LABlab(46.78, -4.04, 48.69)
CIE-LCHlch(46.78, 48.86, 94.75°)
OKLaboklab(53.98% -0.017 0.1046)
OKLCHoklch(53.98% 0.106 99.2)
XYZxyz(14.3986, 15.8489, 2.8729)
Luminance0.1585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6F12 #12217E
analogous
#7E3912 #7E6F12 #577E12
triadic
#7E6F12 #127E6F #6F127E
tetradic
#7E6F12 #127E39 #12217E #7E1257
square
#7E6F12 #127E39 #12217E #7E1257
split-complementary
#7E6F12 #12577E #39127E
monochromatic
#1B1804 #48400A #7E6F12 #B49E1A #E1C72A

Accessibility & contrast

On white

5.04
#7E6F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E6F12
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6F12#FFFFFF#000000##FFFFFF
##7E6F121.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#7F711A
Tritanopia (blue-blind)
#89665E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e6f12;
/* rgb */ color: rgb(126, 111, 18);
/* oklch */ color: oklch(54.0% 0.106 99.2);
Tailwind
colors: {
  custom: {
    50: '#a7985b',
    500: '#7e6f12',
    950: '#000000',
  },
}
SCSS
$custom: #7e6f12;
$custom-light: #a7985b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6f12",
  "rgb": {
    "r": 126,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 51.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53981,
    "c": 0.10601,
    "h": 99.2
  },
  "luminance": 0.15848
}

Semantic roles & 50–950 ramp

primary
#7E6F12
secondary
#3849B4
accent
#50F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6F12

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

Preview Lab → · Contrast checker → · Palette generator →

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