#7E7C12#7E7C12

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

Color values

HEX#7E7C12
RGBrgb(126, 124, 18)
HSLhsl(59, 75%, 28%)
HSVhsv(59, 86%, 49%)
CMYKcmyk(0%, 1.6%, 85.7%, 50.6%)
CIE-LABlab(50.56, -11.29, 51.91)
CIE-LCHlch(50.56, 53.12, 102.27°)
OKLaboklab(57% -0.0372 0.1116)
OKLCHoklch(57% 0.118 108.4)
XYZxyz(15.9217, 18.8951, 3.3806)
Luminance0.1890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7C12 #12147E
analogous
#7E4612 #7E7C12 #4A7E12
triadic
#7E7C12 #127E7C #7C127E
tetradic
#7E7C12 #127E46 #12147E #7E124A
square
#7E7C12 #127E46 #12147E #7E124A
split-complementary
#7E7C12 #124A7E #46127E
monochromatic
#1B1A04 #48470A #7E7C12 #B4B11A #E1DD2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7e7c12;
/* rgb */ color: rgb(126, 124, 18);
/* oklch */ color: oklch(57.0% 0.118 108.4);
Tailwind
colors: {
  custom: {
    50: '#a7a15d',
    500: '#7e7c12',
    950: '#000000',
  },
}
SCSS
$custom: #7e7c12;
$custom-light: #a7a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7c12",
  "rgb": {
    "r": 126,
    "g": 124,
    "b": 18
  },
  "hsl": {
    "h": 58.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56997,
    "c": 0.11768,
    "h": 108.4
  },
  "luminance": 0.18895
}

Semantic roles & 50–950 ramp

primary
#7E7C12
secondary
#383AB4
accent
#3AF236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7C12

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

Preview Lab → · Contrast checker → · Palette generator →

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