#7E7C14#7E7C14

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

Color values

HEX#7E7C14
RGBrgb(126, 124, 20)
HSLhsl(59, 73%, 29%)
HSVhsv(59, 84%, 49%)
CMYKcmyk(0%, 1.6%, 84.1%, 50.6%)
CIE-LABlab(50.57, -11.23, 51.37)
CIE-LCHlch(50.57, 52.58, 102.33°)
OKLaboklab(57.01% -0.0369 0.1109)
OKLCHoklch(57.01% 0.117 108.4)
XYZxyz(15.9388, 18.9020, 3.4705)
Luminance0.1890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7C14 #14167E
analogous
#7E4714 #7E7C14 #4B7E14
triadic
#7E7C14 #147E7C #7C147E
tetradic
#7E7C14 #147E47 #14167E #7E144B
square
#7E7C14 #147E47 #14167E #7E144B
split-complementary
#7E7C14 #144B7E #47147E
monochromatic
#1A1A04 #49480C #7E7C14 #B3B01C #DEDB2E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7C14#FFFFFF#000000##000000
##7E7C141.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)
#897A1E
Tritanopia (blue-blind)
#887369
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7c14;
/* rgb */ color: rgb(126, 124, 20);
/* oklch */ color: oklch(57.0% 0.117 108.4);
Tailwind
colors: {
  custom: {
    50: '#a7a15d',
    500: '#7e7c14',
    950: '#000000',
  },
}
SCSS
$custom: #7e7c14;
$custom-light: #a7a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7c14",
  "rgb": {
    "r": 126,
    "g": 124,
    "b": 20
  },
  "hsl": {
    "h": 58.868,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57006,
    "c": 0.11684,
    "h": 108.4
  },
  "luminance": 0.18901
}

Semantic roles & 50–950 ramp

primary
#7E7C14
secondary
#3A3DB3
accent
#3CEF38
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7C14

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

Preview Lab → · Contrast checker → · Palette generator →

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