#7C681B#7C681B

#7C681B is a mid, moderate yellow. Relative luminance 0.143; OKLCH L 52.2% C 0.096 H 93.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7C681B
RGBrgb(124, 104, 27)
HSLhsl(48, 64%, 30%)
HSVhsv(48, 78%, 49%)
CMYKcmyk(0%, 16.1%, 78.2%, 51.4%)
CIE-LABlab(44.61, -0.63, 43.56)
CIE-LCHlch(44.61, 43.56, 90.83°)
OKLaboklab(52.24% -0.0063 0.0957)
OKLCHoklch(52.24% 0.096 93.8)
XYZxyz(13.4611, 14.2656, 3.0812)
Luminance0.1426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C681B #1B2F7C
analogous
#7C381B #7C681B #607C1B
triadic
#7C681B #1B7C68 #681B7C
tetradic
#7C681B #1B7C38 #1B2F7C #7C1B60
square
#7C681B #1B7C38 #1B2F7C #7C1B60
split-complementary
#7C681B #1B607C #381B7C
monochromatic
#191505 #4A3E10 #7C681B #AE9226 #D5B53D

Accessibility & contrast

On white

5.45
#7C681B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7C681B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C681B
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C681B#FFFFFF#000000##FFFFFF
##7C681B1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74660D
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#875F59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7c681b;
/* rgb */ color: rgb(124, 104, 27);
/* oklch */ color: oklch(52.2% 0.096 93.8);
Tailwind
colors: {
  custom: {
    50: '#a5925e',
    500: '#7c681b',
    950: '#000000',
  },
}
SCSS
$custom: #7c681b;
$custom-light: #a5925e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c681b",
  "rgb": {
    "r": 124,
    "g": 104,
    "b": 27
  },
  "hsl": {
    "h": 47.629,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52235,
    "c": 0.09587,
    "h": 93.8
  },
  "luminance": 0.14265
}

Semantic roles & 50–950 ramp

primary
#7C681B
secondary
#4359B0
accent
#63E741
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D05
muted
#7F7D79

Preview Lab

Preview with #7C681B

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

Preview Lab → · Contrast checker → · Palette generator →

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