#7E7C1F#7E7C1F

#7E7C1F is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.1% C 0.111 H 108.2°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#7E7C1F
RGBrgb(126, 124, 31)
HSLhsl(59, 61%, 31%)
HSVhsv(59, 75%, 49%)
CMYKcmyk(0%, 1.6%, 75.4%, 50.6%)
CIE-LABlab(50.63, -10.77, 47.80)
CIE-LCHlch(50.63, 49.00, 102.70°)
OKLaboklab(57.07% -0.0347 0.1054)
OKLCHoklch(57.07% 0.111 108.2)
XYZxyz(16.0598, 18.9504, 4.1079)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7C1F #1F217E
analogous
#7E4C1F #7E7C1F #507E1F
triadic
#7E7C1F #1F7E7C #7C1F7E
tetradic
#7E7C1F #1F7E4C #1F217E #7E1F50
square
#7E7C1F #1F7E4C #1F217E #7E1F50
split-complementary
#7E7C1F #1F507E #4C1F7E
monochromatic
#1C1B07 #4D4C13 #7E7C1F #AFAC2B #D1CF46

Accessibility & contrast

On white

4.38
#7E7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#7E7C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7C1F
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7C1F#FFFFFF#000000##000000
##7E7C1F1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#87746A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7c1f;
/* rgb */ color: rgb(126, 124, 31);
/* oklch */ color: oklch(57.1% 0.111 108.2);
Tailwind
colors: {
  custom: {
    50: '#a6a162',
    500: '#7e7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e7c1f;
$custom-light: #a6a162;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7c1f",
  "rgb": {
    "r": 126,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 58.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57069,
    "c": 0.11095,
    "h": 108.2
  },
  "luminance": 0.1895
}

Semantic roles & 50–950 ramp

primary
#7E7C1F
secondary
#484AB1
accent
#48E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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