#7E7211#7E7211

#7E7211 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.7% C 0.109 H 101.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7E7211
RGBrgb(126, 114, 17)
HSLhsl(53, 76%, 28%)
HSVhsv(53, 87%, 49%)
CMYKcmyk(0%, 9.5%, 86.5%, 50.6%)
CIE-LABlab(47.64, -5.77, 49.71)
CIE-LCHlch(47.64, 50.04, 96.62°)
OKLaboklab(54.67% -0.0219 0.1067)
OKLCHoklch(54.67% 0.109 101.6)
XYZxyz(14.7234, 16.5114, 2.9417)
Luminance0.1651 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7211 #111D7E
analogous
#7E3B11 #7E7211 #547E11
triadic
#7E7211 #117E72 #72117E
tetradic
#7E7211 #117E3B #111D7E #7E1154
square
#7E7211 #117E3B #111D7E #7E1154
split-complementary
#7E7211 #11547E #3B117E
monochromatic
#1B1804 #48410A #7E7211 #B4A318 #E2CD27

Accessibility & contrast

On white

4.88
#7E7211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7E7211 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7211
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7211#FFFFFF#000000##FFFFFF
##7E72111.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#81731A
Tritanopia (blue-blind)
#886961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e7211;
/* rgb */ color: rgb(126, 114, 17);
/* oklch */ color: oklch(54.7% 0.109 101.6);
Tailwind
colors: {
  custom: {
    50: '#a79a5b',
    500: '#7e7211',
    950: '#000000',
  },
}
SCSS
$custom: #7e7211;
$custom-light: #a79a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7211",
  "rgb": {
    "r": 126,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 53.394,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54665,
    "c": 0.10888,
    "h": 101.6
  },
  "luminance": 0.16511
}

Semantic roles & 50–950 ramp

primary
#7E7211
secondary
#3745B4
accent
#4AF335
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7211

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

Preview Lab → · Contrast checker → · Palette generator →

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