#7E6912#7E6912

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

Color values

HEX#7E6912
RGBrgb(126, 105, 18)
HSLhsl(48, 75%, 28%)
HSVhsv(48, 86%, 49%)
CMYKcmyk(0%, 16.7%, 85.7%, 50.6%)
CIE-LABlab(45.06, -0.60, 47.23)
CIE-LCHlch(45.06, 47.23, 90.73°)
OKLaboklab(52.62% -0.0073 0.1014)
OKLCHoklch(52.62% 0.102 94.1)
XYZxyz(13.7657, 14.5833, 2.6619)
Luminance0.1458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6912 #12277E
analogous
#7E3312 #7E6912 #5D7E12
triadic
#7E6912 #127E69 #69127E
tetradic
#7E6912 #127E33 #12277E #7E125D
square
#7E6912 #127E33 #12277E #7E125D
split-complementary
#7E6912 #125D7E #33127E
monochromatic
#1B1604 #483C0A #7E6912 #B4961A #E1BD2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E6912#FFFFFF#000000##FFFFFF
##7E69121.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)
#756700
Deuteranopia (green-blind)
#7B6D19
Tritanopia (blue-blind)
#896059
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e6912;
/* rgb */ color: rgb(126, 105, 18);
/* oklch */ color: oklch(52.6% 0.102 94.1);
Tailwind
colors: {
  custom: {
    50: '#a7935a',
    500: '#7e6912',
    950: '#000000',
  },
}
SCSS
$custom: #7e6912;
$custom-light: #a7935a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6912",
  "rgb": {
    "r": 126,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 48.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52622,
    "c": 0.1017,
    "h": 94.1
  },
  "luminance": 0.14582
}

Semantic roles & 50–950 ramp

primary
#7E6912
secondary
#3850B4
accent
#5BF236
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6912

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

Preview Lab → · Contrast checker → · Palette generator →

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