#7F7915#7F7915

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

Color values

HEX#7F7915
RGBrgb(127, 121, 21)
HSLhsl(57, 72%, 29%)
HSVhsv(57, 83%, 50%)
CMYKcmyk(0%, 4.7%, 83.5%, 50.2%)
CIE-LABlab(49.79, -9.08, 50.44)
CIE-LCHlch(49.79, 51.25, 100.20°)
OKLaboklab(56.4% -0.0309 0.109)
OKLCHoklch(56.4% 0.113 105.8)
XYZxyz(15.7258, 18.2415, 3.4019)
Luminance0.1824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7915 #151B7F
analogous
#7F4415 #7F7915 #507F15
triadic
#7F7915 #157F79 #79157F
tetradic
#7F7915 #157F44 #151B7F #7F1550
square
#7F7915 #157F44 #151B7F #7F1550
split-complementary
#7F7915 #15507F #44157F
monochromatic
#1A1904 #4A470C #7F7915 #B4AB1E #DDD331

Accessibility & contrast

On white

4.52
#7F7915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7F7915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7915
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7915#FFFFFF#000000##000000
##7F79151.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f7915;
/* rgb */ color: rgb(127, 121, 21);
/* oklch */ color: oklch(56.4% 0.113 105.8);
Tailwind
colors: {
  custom: {
    50: '#a89f5d',
    500: '#7f7915',
    950: '#000000',
  },
}
SCSS
$custom: #7f7915;
$custom-light: #a89f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7915",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 56.604,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56403,
    "c": 0.11328,
    "h": 105.8
  },
  "luminance": 0.18241
}

Semantic roles & 50–950 ramp

primary
#7F7915
secondary
#3C43B4
accent
#44EE39
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7915

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

Preview Lab → · Contrast checker → · Palette generator →

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