#7E681F#7E681F

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

Color values

HEX#7E681F
RGBrgb(126, 104, 31)
HSLhsl(46, 61%, 31%)
HSVhsv(46, 75%, 49%)
CMYKcmyk(0%, 17.5%, 75.4%, 50.6%)
CIE-LABlab(44.85, 0.52, 42.21)
CIE-LCHlch(44.85, 42.22, 89.30°)
OKLaboklab(52.48% -0.0027 0.0936)
OKLCHoklch(52.48% 0.094 91.6)
XYZxyz(13.8026, 14.4360, 3.3555)
Luminance0.1444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E681F #1F357E
analogous
#7E381F #7E681F #647E1F
triadic
#7E681F #1F7E68 #681F7E
tetradic
#7E681F #1F7E38 #1F357E #7E1F64
square
#7E681F #1F7E38 #1F357E #7E1F64
split-complementary
#7E681F #1F647E #381F7E
monochromatic
#1C1707 #4D3F13 #7E681F #AF912B #D1B146

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E681F#FFFFFF#000000##FFFFFF
##7E681F1.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)
#746614
Deuteranopia (green-blind)
#796D23
Tritanopia (blue-blind)
#895F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e681f;
/* rgb */ color: rgb(126, 104, 31);
/* oklch */ color: oklch(52.5% 0.094 91.6);
Tailwind
colors: {
  custom: {
    50: '#a79260',
    500: '#7e681f',
    950: '#000000',
  },
}
SCSS
$custom: #7e681f;
$custom-light: #a79260;
$custom-dark: #000000;
JSON
{
  "hex": "#7e681f",
  "rgb": {
    "r": 126,
    "g": 104,
    "b": 31
  },
  "hsl": {
    "h": 46.105,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52483,
    "c": 0.09361,
    "h": 91.6
  },
  "luminance": 0.14435
}

Semantic roles & 50–950 ramp

primary
#7E681F
secondary
#4860B1
accent
#69E444
background
#FAF8F5
surface
#F4F0EA
border
#CECBC6
text
#100D05
muted
#7F7D79

Preview Lab

Preview with #7E681F

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

Preview Lab → · Contrast checker → · Palette generator →

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