#7E7E1A#7E7E1A

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

Color values

HEX#7E7E1A
RGBrgb(126, 126, 26)
HSLhsl(60, 66%, 30%)
HSVhsv(60, 79%, 49%)
CMYKcmyk(0%, 0%, 79.4%, 50.6%)
CIE-LABlab(51.19, -12.09, 50.08)
CIE-LCHlch(51.19, 51.51, 103.57°)
OKLaboklab(57.51% -0.0388 0.1093)
OKLCHoklch(57.51% 0.116 109.6)
XYZxyz(16.2521, 19.4324, 3.8718)
Luminance0.1943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E1A #1A1A7E
analogous
#7E4C1A #7E7E1A #4C7E1A
triadic
#7E7E1A #1A7E7E #7E1A7E
tetradic
#7E7E1A #1A7E4C #1A1A7E #7E1A4C
square
#7E7E1A #1A7E4C #1A1A7E #7E1A4C
split-complementary
#7E7E1A #1A4C7E #4C1A7E
monochromatic
#191905 #4B4B10 #7E7E1A #B1B124 #D7D73C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7E1A#FFFFFF#000000##000000
##7E7E1A1.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)
#897800
Deuteranopia (green-blind)
#8A7B23
Tritanopia (blue-blind)
#87756B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e1a;
/* rgb */ color: rgb(126, 126, 26);
/* oklch */ color: oklch(57.5% 0.116 109.6);
Tailwind
colors: {
  custom: {
    50: '#a7a360',
    500: '#7e7e1a',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e1a;
$custom-light: #a7a360;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e1a",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 60,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57507,
    "c": 0.11594,
    "h": 109.6
  },
  "luminance": 0.19432
}

Semantic roles & 50–950 ramp

primary
#7E7E1A
secondary
#4242B2
accent
#3FE93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7E7E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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