#7F7315#7F7315

#7F7315 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.0% C 0.108 H 101.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7F7315
RGBrgb(127, 115, 21)
HSLhsl(53, 72%, 29%)
HSVhsv(53, 83%, 50%)
CMYKcmyk(0%, 9.4%, 83.5%, 50.2%)
CIE-LABlab(48.04, -5.73, 48.92)
CIE-LCHlch(48.04, 49.25, 96.68°)
OKLaboklab(55.02% -0.0215 0.1057)
OKLCHoklch(55.02% 0.108 101.5)
XYZxyz(15.0192, 16.8283, 3.1664)
Luminance0.1683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7315 #15217F
analogous
#7F3E15 #7F7315 #567F15
triadic
#7F7315 #157F73 #73157F
tetradic
#7F7315 #157F3E #15217F #7F1556
square
#7F7315 #157F3E #15217F #7F1556
split-complementary
#7F7315 #15567F #3E157F
monochromatic
#1A1804 #4A430C #7F7315 #B4A31E #DDCA31

Accessibility & contrast

On white

4.81
#7F7315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7F7315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7315
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7315#FFFFFF#000000##FFFFFF
##7F73151.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#82741D
Tritanopia (blue-blind)
#896A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f7315;
/* rgb */ color: rgb(127, 115, 21);
/* oklch */ color: oklch(55.0% 0.108 101.5);
Tailwind
colors: {
  custom: {
    50: '#a89a5c',
    500: '#7f7315',
    950: '#000000',
  },
}
SCSS
$custom: #7f7315;
$custom-light: #a89a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7315",
  "rgb": {
    "r": 127,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 53.208,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.55015,
    "c": 0.10787,
    "h": 101.5
  },
  "luminance": 0.16828
}

Semantic roles & 50–950 ramp

primary
#7F7315
secondary
#3C49B4
accent
#4EEE39
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7F7315

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

Preview Lab → · Contrast checker → · Palette generator →

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