#7F6818#7F6818

#7F6818 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.5% C 0.098 H 91.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F6818
RGBrgb(127, 104, 24)
HSLhsl(47, 68%, 30%)
HSVhsv(47, 81%, 50%)
CMYKcmyk(0%, 18.1%, 81.1%, 50.2%)
CIE-LABlab(44.91, 0.67, 45.10)
CIE-LCHlch(44.91, 45.11, 89.15°)
OKLaboklab(52.54% -0.0031 0.0981)
OKLCHoklch(52.54% 0.098 91.8)
XYZxyz(13.8684, 14.4795, 2.9283)
Luminance0.1448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6818 #182F7F
analogous
#7F3518 #7F6818 #637F18
triadic
#7F6818 #187F68 #68187F
tetradic
#7F6818 #187F35 #182F7F #7F1863
square
#7F6818 #187F35 #182F7F #7F1863
split-complementary
#7F6818 #18637F #35187F
monochromatic
#1A1505 #4C3E0E #7F6818 #B29222 #D9B538

Accessibility & contrast

On white

5.39
#7F6818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F6818
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6818#FFFFFF#000000##FFFFFF
##7F68181.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f6818;
/* rgb */ color: rgb(127, 104, 24);
/* oklch */ color: oklch(52.5% 0.098 91.8);
Tailwind
colors: {
  custom: {
    50: '#a8925c',
    500: '#7f6818',
    950: '#000000',
  },
}
SCSS
$custom: #7f6818;
$custom-light: #a8925c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6818",
  "rgb": {
    "r": 127,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 46.602,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52542,
    "c": 0.09819,
    "h": 91.8
  },
  "luminance": 0.14479
}

Semantic roles & 50–950 ramp

primary
#7F6818
secondary
#3F59B3
accent
#64EB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7F6818

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

Preview Lab → · Contrast checker → · Palette generator →

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