#7F681F#7F681F

#7F681F is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.6% C 0.094 H 90.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7F681F
RGBrgb(127, 104, 31)
HSLhsl(46, 61%, 31%)
HSVhsv(46, 76%, 50%)
CMYKcmyk(0%, 18.1%, 75.6%, 50.2%)
CIE-LABlab(44.96, 0.99, 42.35)
CIE-LCHlch(44.96, 42.37, 88.66°)
OKLaboklab(52.59% -0.0014 0.0938)
OKLCHoklch(52.59% 0.094 90.8)
XYZxyz(13.9508, 14.5124, 3.3624)
Luminance0.1451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F681F #1F367F
analogous
#7F381F #7F681F #667F1F
triadic
#7F681F #1F7F68 #681F7F
tetradic
#7F681F #1F7F38 #1F367F #7F1F66
square
#7F681F #1F7F38 #1F367F #7F1F66
split-complementary
#7F681F #1F667F #381F7F
monochromatic
#1D1707 #4E4013 #7F681F #B0902B #D2B146

Accessibility & contrast

On white

5.38
#7F681F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7F681F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F681F
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F681F#FFFFFF#000000##FFFFFF
##7F681F1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746714
Deuteranopia (green-blind)
#7A6D23
Tritanopia (blue-blind)
#8A5F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f681f;
/* rgb */ color: rgb(127, 104, 31);
/* oklch */ color: oklch(52.6% 0.094 90.8);
Tailwind
colors: {
  custom: {
    50: '#a89260',
    500: '#7f681f',
    950: '#000000',
  },
}
SCSS
$custom: #7f681f;
$custom-light: #a89260;
$custom-dark: #000000;
JSON
{
  "hex": "#7f681f",
  "rgb": {
    "r": 127,
    "g": 104,
    "b": 31
  },
  "hsl": {
    "h": 45.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52593,
    "c": 0.09383,
    "h": 90.8
  },
  "luminance": 0.14512
}

Semantic roles & 50–950 ramp

primary
#7F681F
secondary
#4861B2
accent
#6AE444
background
#FAF8F5
surface
#F4F0EA
border
#CECBC6
text
#100D05
muted
#7F7D79

Preview Lab

Preview with #7F681F

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

Preview Lab → · Contrast checker → · Palette generator →

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