#7E7E2B#7E7E2B

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

Color values

HEX#7E7E2B
RGBrgb(126, 126, 43)
HSLhsl(60, 49%, 33%)
HSVhsv(60, 66%, 49%)
CMYKcmyk(0%, 0%, 65.9%, 50.6%)
CIE-LABlab(51.30, -11.17, 43.54)
CIE-LCHlch(51.30, 44.96, 104.39°)
OKLaboklab(57.64% -0.0345 0.0986)
OKLCHoklch(57.64% 0.104 109.3)
XYZxyz(16.5016, 19.5322, 5.1859)
Luminance0.1953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E2B #2B2B7E
analogous
#7E542B #7E7E2B #547E2B
triadic
#7E7E2B #2B7E7E #7E2B7E
tetradic
#7E7E2B #2B7E54 #2B2B7E #7E2B54
square
#7E7E2B #2B7E54 #2B2B7E #7E2B54
split-complementary
#7E7E2B #2B547E #542B7E
monochromatic
#23230C #50501B #7E7E2B #ACAC3B #C7C75C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7E2B#FFFFFF#000000##000000
##7E7E2B1.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)
#887920
Deuteranopia (green-blind)
#897C30
Tritanopia (blue-blind)
#87766D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e2b;
/* rgb */ color: rgb(126, 126, 43);
/* oklch */ color: oklch(57.6% 0.104 109.3);
Tailwind
colors: {
  custom: {
    50: '#a6a369',
    500: '#7e7e2b',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e2b;
$custom-light: #a6a369;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e2b",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 43
  },
  "hsl": {
    "h": 60,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57636,
    "c": 0.10444,
    "h": 109.3
  },
  "luminance": 0.19532
}

Semantic roles & 50–950 ramp

primary
#7E7E2B
secondary
#5858AD
accent
#4FD94F
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E7E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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