#7E7E2D#7E7E2D

#7E7E2D is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.7% C 0.103 H 109.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7E7E2D
RGBrgb(126, 126, 45)
HSLhsl(60, 47%, 34%)
HSVhsv(60, 64%, 49%)
CMYKcmyk(0%, 0%, 64.3%, 50.6%)
CIE-LABlab(51.32, -11.03, 42.66)
CIE-LCHlch(51.32, 44.07, 104.50°)
OKLaboklab(57.66% -0.0339 0.097)
OKLCHoklch(57.66% 0.103 109.2)
XYZxyz(16.5392, 19.5472, 5.3839)
Luminance0.1955 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E2D #2D2D7E
analogous
#7E552D #7E7E2D #557E2D
triadic
#7E7E2D #2D7E7E #7E2D7E
tetradic
#7E7E2D #2D7E55 #2D2D7E #7E2D55
square
#7E7E2D #2D7E55 #2D2D7E #7E2D55
split-complementary
#7E7E2D #2D557E #552D7E
monochromatic
#24240D #51511D #7E7E2D #ABAB3D #C6C65F

Accessibility & contrast

On white

4.28
#7E7E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#7E7E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7E2D
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7E2D#FFFFFF#000000##000000
##7E7E2D1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887923
Deuteranopia (green-blind)
#897C32
Tritanopia (blue-blind)
#87766D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e2d;
/* rgb */ color: rgb(126, 126, 45);
/* oklch */ color: oklch(57.7% 0.103 109.2);
Tailwind
colors: {
  custom: {
    50: '#a6a36a',
    500: '#7e7e2d',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e2d;
$custom-light: #a6a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e2d",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 45
  },
  "hsl": {
    "h": 60,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57655,
    "c": 0.10278,
    "h": 109.2
  },
  "luminance": 0.19547
}

Semantic roles & 50–950 ramp

primary
#7E7E2D
secondary
#5A5AAC
accent
#51D751
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E7E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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