#7E7915#7E7915

#7E7915 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.113 H 106.5°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E7915
RGBrgb(126, 121, 21)
HSLhsl(57, 71%, 29%)
HSVhsv(57, 83%, 49%)
CMYKcmyk(0%, 4%, 83.3%, 50.6%)
CIE-LABlab(49.70, -9.55, 50.32)
CIE-LCHlch(49.70, 51.22, 100.74°)
OKLaboklab(56.31% -0.0321 0.1088)
OKLCHoklch(56.31% 0.113 106.5)
XYZxyz(15.5776, 18.1651, 3.3950)
Luminance0.1817 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7915 #151A7E
analogous
#7E4515 #7E7915 #4F7E15
triadic
#7E7915 #157E79 #79157E
tetradic
#7E7915 #157E45 #151A7E #7E154F
square
#7E7915 #157E45 #151A7E #7E154F
split-complementary
#7E7915 #154F7E #45157E
monochromatic
#1A1904 #4A470C #7E7915 #B2AB1E #DDD431

Accessibility & contrast

On white

4.53
#7E7915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7E7915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7915
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7915#FFFFFF#000000##000000
##7E79151.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#86781E
Tritanopia (blue-blind)
#887067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e7915;
/* rgb */ color: rgb(126, 121, 21);
/* oklch */ color: oklch(56.3% 0.113 106.5);
Tailwind
colors: {
  custom: {
    50: '#a79f5d',
    500: '#7e7915',
    950: '#000000',
  },
}
SCSS
$custom: #7e7915;
$custom-light: #a79f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7915",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 57.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56308,
    "c": 0.11344,
    "h": 106.5
  },
  "luminance": 0.18165
}

Semantic roles & 50–950 ramp

primary
#7E7915
secondary
#3C41B3
accent
#42EE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7915

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

Preview Lab → · Contrast checker → · Palette generator →

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