#7E7E1E#7E7E1E

#7E7E1E is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.5% C 0.114 H 109.5°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7E7E1E
RGBrgb(126, 126, 30)
HSLhsl(60, 62%, 31%)
HSVhsv(60, 76%, 49%)
CMYKcmyk(0%, 0%, 76.2%, 50.6%)
CIE-LABlab(51.21, -11.91, 48.72)
CIE-LCHlch(51.21, 50.15, 103.74°)
OKLaboklab(57.53% -0.0379 0.1072)
OKLCHoklch(57.53% 0.114 109.5)
XYZxyz(16.3000, 19.4516, 4.1239)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E1E #1E1E7E
analogous
#7E4E1E #7E7E1E #4E7E1E
triadic
#7E7E1E #1E7E7E #7E1E7E
tetradic
#7E7E1E #1E7E4E #1E1E7E #7E1E4E
square
#7E7E1E #1E7E4E #1E1E7E #7E1E4E
split-complementary
#7E7E1E #1E4E7E #4E1E7E
monochromatic
#1B1B06 #4D4D12 #7E7E1E #AFAF2A #D2D244

Accessibility & contrast

On white

4.29
#7E7E1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#7E7E1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7E1E
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7E1E#FFFFFF#000000##000000
##7E7E1E1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#897809
Deuteranopia (green-blind)
#8A7B26
Tritanopia (blue-blind)
#87766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e1e;
/* rgb */ color: rgb(126, 126, 30);
/* oklch */ color: oklch(57.5% 0.114 109.5);
Tailwind
colors: {
  custom: {
    50: '#a7a362',
    500: '#7e7e1e',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e1e;
$custom-light: #a7a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e1e",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 30
  },
  "hsl": {
    "h": 60,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57532,
    "c": 0.11367,
    "h": 109.5
  },
  "luminance": 0.19451
}

Semantic roles & 50–950 ramp

primary
#7E7E1E
secondary
#4747B1
accent
#43E543
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E7E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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