#7E681B#7E681B

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

Color values

HEX#7E681B
RGBrgb(126, 104, 27)
HSLhsl(47, 65%, 30%)
HSVhsv(47, 79%, 49%)
CMYKcmyk(0%, 17.5%, 78.6%, 50.6%)
CIE-LABlab(44.82, 0.32, 43.83)
CIE-LCHlch(44.82, 43.83, 89.58°)
OKLaboklab(52.45% -0.0037 0.0962)
OKLCHoklch(52.45% 0.096 92.2)
XYZxyz(13.7531, 14.4162, 3.0949)
Luminance0.1442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E681B #1B317E
analogous
#7E371B #7E681B #627E1B
triadic
#7E681B #1B7E68 #681B7E
tetradic
#7E681B #1B7E37 #1B317E #7E1B62
square
#7E681B #1B7E37 #1B317E #7E1B62
split-complementary
#7E681B #1B627E #371B7E
monochromatic
#191505 #4C3E10 #7E681B #B09226 #D6B43E

Accessibility & contrast

On white

5.41
#7E681B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7E681B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E681B
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E681B#FFFFFF#000000##FFFFFF
##7E681B1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74660D
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#895F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e681b;
/* rgb */ color: rgb(126, 104, 27);
/* oklch */ color: oklch(52.5% 0.096 92.2);
Tailwind
colors: {
  custom: {
    50: '#a7925e',
    500: '#7e681b',
    950: '#000000',
  },
}
SCSS
$custom: #7e681b;
$custom-light: #a7925e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e681b",
  "rgb": {
    "r": 126,
    "g": 104,
    "b": 27
  },
  "hsl": {
    "h": 46.667,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.52452,
    "c": 0.09622,
    "h": 92.2
  },
  "luminance": 0.14415
}

Semantic roles & 50–950 ramp

primary
#7E681B
secondary
#435CB2
accent
#65E840
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D05
muted
#7F7D79

Preview Lab

Preview with #7E681B

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

Preview Lab → · Contrast checker → · Palette generator →

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