#7E7215#7E7215

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

Color values

HEX#7E7215
RGBrgb(126, 114, 21)
HSLhsl(53, 71%, 29%)
HSVhsv(53, 83%, 49%)
CMYKcmyk(0%, 9.5%, 83.3%, 50.6%)
CIE-LABlab(47.66, -5.64, 48.54)
CIE-LCHlch(47.66, 48.87, 96.63°)
OKLaboklab(54.68% -0.0212 0.1049)
OKLCHoklch(54.68% 0.107 101.4)
XYZxyz(14.7576, 16.5251, 3.1216)
Luminance0.1652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7215 #15217E
analogous
#7E3E15 #7E7215 #567E15
triadic
#7E7215 #157E72 #72157E
tetradic
#7E7215 #157E3E #15217E #7E1556
square
#7E7215 #157E3E #15217E #7E1556
split-complementary
#7E7215 #15567E #3E157E
monochromatic
#1A1804 #4A430C #7E7215 #B2A11E #DDC931

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7215#FFFFFF#000000##FFFFFF
##7E72151.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)
#81731D
Tritanopia (blue-blind)
#886961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e7215;
/* rgb */ color: rgb(126, 114, 21);
/* oklch */ color: oklch(54.7% 0.107 101.4);
Tailwind
colors: {
  custom: {
    50: '#a79a5c',
    500: '#7e7215',
    950: '#000000',
  },
}
SCSS
$custom: #7e7215;
$custom-light: #a79a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7215",
  "rgb": {
    "r": 126,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 53.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54684,
    "c": 0.10706,
    "h": 101.4
  },
  "luminance": 0.16524
}

Semantic roles & 50–950 ramp

primary
#7E7215
secondary
#3C49B3
accent
#4EEE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7215

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

Preview Lab → · Contrast checker → · Palette generator →

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