#7E7E1F#7E7E1F

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

Color values

HEX#7E7E1F
RGBrgb(126, 126, 31)
HSLhsl(60, 61%, 31%)
HSVhsv(60, 75%, 49%)
CMYKcmyk(0%, 0%, 75.4%, 50.6%)
CIE-LABlab(51.22, -11.86, 48.36)
CIE-LCHlch(51.22, 49.79, 103.78°)
OKLaboklab(57.54% -0.0377 0.1066)
OKLCHoklch(57.54% 0.113 109.5)
XYZxyz(16.3130, 19.4567, 4.1923)
Luminance0.1946 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E1F #1F1F7E
analogous
#7E4E1F #7E7E1F #4E7E1F
triadic
#7E7E1F #1F7E7E #7E1F7E
tetradic
#7E7E1F #1F7E4E #1F1F7E #7E1F4E
square
#7E7E1F #1F7E4E #1F1F7E #7E1F4E
split-complementary
#7E7E1F #1F4E7E #4E1F7E
monochromatic
#1C1C07 #4D4D13 #7E7E1F #AFAF2B #D1D146

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7E1F#FFFFFF#000000##000000
##7E7E1F1.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)
#89780C
Deuteranopia (green-blind)
#8A7B26
Tritanopia (blue-blind)
#87766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e1f;
/* rgb */ color: rgb(126, 126, 31);
/* oklch */ color: oklch(57.5% 0.113 109.5);
Tailwind
colors: {
  custom: {
    50: '#a6a362',
    500: '#7e7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e1f;
$custom-light: #a6a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e1f",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57539,
    "c": 0.11305,
    "h": 109.5
  },
  "luminance": 0.19456
}

Semantic roles & 50–950 ramp

primary
#7E7E1F
secondary
#4848B1
accent
#44E444
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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