#7E6915#7E6915

#7E6915 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.100 H 93.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7E6915
RGBrgb(126, 105, 21)
HSLhsl(48, 71%, 29%)
HSVhsv(48, 83%, 49%)
CMYKcmyk(0%, 16.7%, 83.3%, 50.6%)
CIE-LABlab(45.07, -0.50, 46.27)
CIE-LCHlch(45.07, 46.27, 90.62°)
OKLaboklab(52.64% -0.0067 0.1)
OKLCHoklch(52.64% 0.1 93.8)
XYZxyz(13.7919, 14.5937, 2.7998)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6915 #152A7E
analogous
#7E3515 #7E6915 #5F7E15
triadic
#7E6915 #157E69 #69157E
tetradic
#7E6915 #157E35 #152A7E #7E155F
square
#7E6915 #157E35 #152A7E #7E155F
split-complementary
#7E6915 #155F7E #35157E
monochromatic
#1A1604 #4A3D0C #7E6915 #B2951E #DDBA31

Accessibility & contrast

On white

5.36
#7E6915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7E6915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6915
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6915#FFFFFF#000000##FFFFFF
##7E69151.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756701
Deuteranopia (green-blind)
#7B6D1B
Tritanopia (blue-blind)
#896059
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e6915;
/* rgb */ color: rgb(126, 105, 21);
/* oklch */ color: oklch(52.6% 0.100 93.8);
Tailwind
colors: {
  custom: {
    50: '#a7935b',
    500: '#7e6915',
    950: '#000000',
  },
}
SCSS
$custom: #7e6915;
$custom-light: #a7935b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6915",
  "rgb": {
    "r": 126,
    "g": 105,
    "b": 21
  },
  "hsl": {
    "h": 48,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52638,
    "c": 0.10025,
    "h": 93.8
  },
  "luminance": 0.14593
}

Semantic roles & 50–950 ramp

primary
#7E6915
secondary
#3C54B3
accent
#5EEE3A
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6915

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

Preview Lab → · Contrast checker → · Palette generator →

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