#7F7318#7F7318

#7F7318 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.0% C 0.106 H 101.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7F7318
RGBrgb(127, 115, 24)
HSLhsl(53, 68%, 30%)
HSVhsv(53, 81%, 50%)
CMYKcmyk(0%, 9.4%, 81.1%, 50.2%)
CIE-LABlab(48.06, -5.62, 47.95)
CIE-LCHlch(48.06, 48.28, 96.68°)
OKLaboklab(55.03% -0.0209 0.1043)
OKLCHoklch(55.03% 0.106 101.4)
XYZxyz(15.0487, 16.8401, 3.3218)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7318 #18247F
analogous
#7F4018 #7F7318 #577F18
triadic
#7F7318 #187F73 #73187F
tetradic
#7F7318 #187F40 #18247F #7F1857
square
#7F7318 #187F40 #18247F #7F1857
split-complementary
#7F7318 #18577F #40187F
monochromatic
#1A1705 #4C440E #7F7318 #B2A222 #D9C738

Accessibility & contrast

On white

4.81
#7F7318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7F7318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7318
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7318#FFFFFF#000000##FFFFFF
##7F73181.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F02
Deuteranopia (green-blind)
#82741F
Tritanopia (blue-blind)
#896A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f7318;
/* rgb */ color: rgb(127, 115, 24);
/* oklch */ color: oklch(55.0% 0.106 101.4);
Tailwind
colors: {
  custom: {
    50: '#a89a5e',
    500: '#7f7318',
    950: '#000000',
  },
}
SCSS
$custom: #7f7318;
$custom-light: #a89a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7318",
  "rgb": {
    "r": 127,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 53.01,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55032,
    "c": 0.10634,
    "h": 101.4
  },
  "luminance": 0.16839
}

Semantic roles & 50–950 ramp

primary
#7F7318
secondary
#3F4DB3
accent
#51EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7318

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

Preview Lab → · Contrast checker → · Palette generator →

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