#7E7F1E#7E7F1E

#7E7F1E is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.115 H 110.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7E7F1E
RGBrgb(126, 127, 30)
HSLhsl(61, 62%, 31%)
HSVhsv(61, 76%, 50%)
CMYKcmyk(0.8%, 0%, 76.4%, 50.2%)
CIE-LABlab(51.51, -12.45, 48.99)
CIE-LCHlch(51.51, 50.55, 104.26°)
OKLaboklab(57.77% -0.0394 0.1077)
OKLCHoklch(57.77% 0.115 110.1)
XYZxyz(16.4285, 19.7086, 4.1668)
Luminance0.1971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7F1E #1F1E7F
analogous
#7F4F1E #7E7F1E #4D7F1E
triadic
#7E7F1E #1E7E7F #7F1E7E
tetradic
#7E7F1E #1E7F4F #1F1E7F #7F1E4D
square
#7E7F1E #1E7F4F #1F1E7F #7F1E4D
split-complementary
#7E7F1E #1E4D7F #4F1E7F
monochromatic
#1C1C07 #4D4D12 #7E7F1E #AFB12A #D1D344

Accessibility & contrast

On white

4.25
#7E7F1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7E7F1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7F1E
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7F1E#FFFFFF#000000##000000
##7E7F1E1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7909
Deuteranopia (green-blind)
#8B7C26
Tritanopia (blue-blind)
#87776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e7f1e;
/* rgb */ color: rgb(126, 127, 30);
/* oklch */ color: oklch(57.8% 0.115 110.1);
Tailwind
colors: {
  custom: {
    50: '#a7a362',
    500: '#7e7f1e',
    950: '#000000',
  },
}
SCSS
$custom: #7e7f1e;
$custom-light: #a7a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7f1e",
  "rgb": {
    "r": 126,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 60.619,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57768,
    "c": 0.11473,
    "h": 110.1
  },
  "luminance": 0.19708
}

Semantic roles & 50–950 ramp

primary
#7E7F1E
secondary
#4847B2
accent
#43E545
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E7F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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