#7F6813#7F6813

#7F6813 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.5% C 0.101 H 92.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7F6813
RGBrgb(127, 104, 19)
HSLhsl(47, 74%, 29%)
HSVhsv(47, 85%, 50%)
CMYKcmyk(0%, 18.1%, 85%, 50.2%)
CIE-LABlab(44.89, 0.49, 46.80)
CIE-LCHlch(44.89, 46.81, 89.40°)
OKLaboklab(52.51% -0.0041 0.1007)
OKLCHoklch(52.51% 0.101 92.4)
XYZxyz(13.8211, 14.4605, 2.6792)
Luminance0.1446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6813 #132A7F
analogous
#7F3213 #7F6813 #607F13
triadic
#7F6813 #137F68 #68137F
tetradic
#7F6813 #137F32 #132A7F #7F1360
square
#7F6813 #137F32 #132A7F #7F1360
split-complementary
#7F6813 #13607F #32137F
monochromatic
#1B1604 #4A3C0B #7F6813 #B4941B #E0B92D

Accessibility & contrast

On white

5.40
#7F6813 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7F6813 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6813
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6813#FFFFFF#000000##FFFFFF
##7F68131.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#7A6D19
Tritanopia (blue-blind)
#8A5E58
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f6813;
/* rgb */ color: rgb(127, 104, 19);
/* oklch */ color: oklch(52.5% 0.101 92.4);
Tailwind
colors: {
  custom: {
    50: '#a8925a',
    500: '#7f6813',
    950: '#000000',
  },
}
SCSS
$custom: #7f6813;
$custom-light: #a8925a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6813",
  "rgb": {
    "r": 127,
    "g": 104,
    "b": 19
  },
  "hsl": {
    "h": 47.222,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52512,
    "c": 0.10078,
    "h": 92.4
  },
  "luminance": 0.1446
}

Semantic roles & 50–950 ramp

primary
#7F6813
secondary
#3954B4
accent
#5FF137
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7F6813

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

Preview Lab → · Contrast checker → · Palette generator →

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