#7E6312#7E6312

#7E6312 is a mid, moderate yellow. Relative luminance 0.134; OKLCH L 51.3% C 0.098 H 88.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7E6312
RGBrgb(126, 99, 18)
HSLhsl(45, 75%, 28%)
HSVhsv(45, 86%, 49%)
CMYKcmyk(0%, 21.4%, 85.7%, 50.6%)
CIE-LABlab(43.37, 2.89, 45.77)
CIE-LCHlch(43.37, 45.86, 86.39°)
OKLaboklab(51.29% 0.0027 0.0983)
OKLCHoklch(51.29% 0.098 88.5)
XYZxyz(13.1760, 13.4039, 2.4654)
Luminance0.1340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6312 #122D7E
analogous
#7E2D12 #7E6312 #637E12
triadic
#7E6312 #127E63 #63127E
tetradic
#7E6312 #127E2D #122D7E #7E1263
square
#7E6312 #127E2D #122D7E #7E1263
split-complementary
#7E6312 #12637E #2D127E
monochromatic
#1B1504 #48390A #7E6312 #B48D1A #E1B32A

Accessibility & contrast

On white

5.71
#7E6312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7E6312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6312
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6312#FFFFFF#000000##FFFFFF
##7E63121.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#766917
Tritanopia (blue-blind)
#895954
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e6312;
/* rgb */ color: rgb(126, 99, 18);
/* oklch */ color: oklch(51.3% 0.098 88.5);
Tailwind
colors: {
  custom: {
    50: '#a88f59',
    500: '#7e6312',
    950: '#000000',
  },
}
SCSS
$custom: #7e6312;
$custom-light: #a88f59;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6312",
  "rgb": {
    "r": 126,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 45,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51286,
    "c": 0.09831,
    "h": 88.5
  },
  "luminance": 0.13403
}

Semantic roles & 50–950 ramp

primary
#7E6312
secondary
#3857B4
accent
#65F236
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7E6312

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

Preview Lab → · Contrast checker → · Palette generator →

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