#7E7E1B#7E7E1B

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

Color values

HEX#7E7E1B
RGBrgb(126, 126, 27)
HSLhsl(60, 65%, 30%)
HSVhsv(60, 79%, 49%)
CMYKcmyk(0%, 0%, 78.6%, 50.6%)
CIE-LABlab(51.19, -12.05, 49.75)
CIE-LCHlch(51.19, 51.19, 103.61°)
OKLaboklab(57.51% -0.0386 0.1088)
OKLCHoklch(57.51% 0.115 109.5)
XYZxyz(16.2635, 19.4370, 3.9317)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E1B #1B1B7E
analogous
#7E4D1B #7E7E1B #4D7E1B
triadic
#7E7E1B #1B7E7E #7E1B7E
tetradic
#7E7E1B #1B7E4D #1B1B7E #7E1B4D
square
#7E7E1B #1B7E4D #1B1B7E #7E1B4D
split-complementary
#7E7E1B #1B4C7E #4C1B7E
monochromatic
#191905 #4C4C10 #7E7E1B #B0B026 #D6D63E

Accessibility & contrast

On white

4.30
#7E7E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7E1B#FFFFFF#000000##000000
##7E7E1B1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#897802
Deuteranopia (green-blind)
#8A7B23
Tritanopia (blue-blind)
#87756C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e1b;
/* rgb */ color: rgb(126, 126, 27);
/* oklch */ color: oklch(57.5% 0.115 109.5);
Tailwind
colors: {
  custom: {
    50: '#a7a361',
    500: '#7e7e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e1b;
$custom-light: #a7a361;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e1b",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 60,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.57513,
    "c": 0.11539,
    "h": 109.5
  },
  "luminance": 0.19436
}

Semantic roles & 50–950 ramp

primary
#7E7E1B
secondary
#4343B2
accent
#40E840
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E7E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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