#7F6918#7F6918

#7F6918 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.8% C 0.099 H 92.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7F6918
RGBrgb(127, 105, 24)
HSLhsl(47, 68%, 30%)
HSVhsv(47, 81%, 50%)
CMYKcmyk(0%, 17.3%, 81.1%, 50.2%)
CIE-LABlab(45.20, 0.09, 45.36)
CIE-LCHlch(45.20, 45.36, 89.88°)
OKLaboklab(52.76% -0.0048 0.0987)
OKLCHoklch(52.76% 0.099 92.8)
XYZxyz(13.9696, 14.6820, 2.9621)
Luminance0.1468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6918 #182E7F
analogous
#7F3518 #7F6918 #627F18
triadic
#7F6918 #187F69 #69187F
tetradic
#7F6918 #187F35 #182E7F #7F1862
square
#7F6918 #187F35 #182E7F #7F1862
split-complementary
#7F6918 #18627F #35187F
monochromatic
#1A1505 #4C3E0E #7F6918 #B29422 #D9B738

Accessibility & contrast

On white

5.34
#7F6918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7F6918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6918
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6918#FFFFFF#000000##FFFFFF
##7F69181.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756707
Deuteranopia (green-blind)
#7B6E1D
Tritanopia (blue-blind)
#8A605A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f6918;
/* rgb */ color: rgb(127, 105, 24);
/* oklch */ color: oklch(52.8% 0.099 92.8);
Tailwind
colors: {
  custom: {
    50: '#a8935c',
    500: '#7f6918',
    950: '#000000',
  },
}
SCSS
$custom: #7f6918;
$custom-light: #a8935c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6918",
  "rgb": {
    "r": 127,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 47.184,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52765,
    "c": 0.09881,
    "h": 92.8
  },
  "luminance": 0.14681
}

Semantic roles & 50–950 ramp

primary
#7F6918
secondary
#3F58B3
accent
#62EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6918

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

Preview Lab → · Contrast checker → · Palette generator →

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