#7E7C15#7E7C15

#7E7C15 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.116 H 108.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7E7C15
RGBrgb(126, 124, 21)
HSLhsl(59, 71%, 29%)
HSVhsv(59, 83%, 49%)
CMYKcmyk(0%, 1.6%, 83.3%, 50.6%)
CIE-LABlab(50.58, -11.19, 51.08)
CIE-LCHlch(50.58, 52.30, 102.36°)
OKLaboklab(57.01% -0.0367 0.1104)
OKLCHoklch(57.01% 0.116 108.4)
XYZxyz(15.9478, 18.9056, 3.5184)
Luminance0.1890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7C15 #15177E
analogous
#7E4815 #7E7C15 #4C7E15
triadic
#7E7C15 #157E7C #7C157E
tetradic
#7E7C15 #157E48 #15177E #7E154C
square
#7E7C15 #157E48 #15177E #7E154C
split-complementary
#7E7C15 #154C7E #48157E
monochromatic
#1A1A04 #4A480C #7E7C15 #B2B01E #DDD931

Accessibility & contrast

On white

4.39
#7E7C15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7E7C15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7C15
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7C15#FFFFFF#000000##000000
##7E7C151.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#897A1F
Tritanopia (blue-blind)
#887369
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7c15;
/* rgb */ color: rgb(126, 124, 21);
/* oklch */ color: oklch(57.0% 0.116 108.4);
Tailwind
colors: {
  custom: {
    50: '#a7a15e',
    500: '#7e7c15',
    950: '#000000',
  },
}
SCSS
$custom: #7e7c15;
$custom-light: #a7a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7c15",
  "rgb": {
    "r": 126,
    "g": 124,
    "b": 21
  },
  "hsl": {
    "h": 58.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5701,
    "c": 0.11638,
    "h": 108.4
  },
  "luminance": 0.18905
}

Semantic roles & 50–950 ramp

primary
#7E7C15
secondary
#3C3EB3
accent
#3DEE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7C15

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

Preview Lab → · Contrast checker → · Palette generator →

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