#7C7215#7C7215

#7C7215 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.5% C 0.107 H 102.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7C7215
RGBrgb(124, 114, 21)
HSLhsl(54, 71%, 28%)
HSVhsv(54, 83%, 49%)
CMYKcmyk(0%, 8.1%, 83.1%, 51.4%)
CIE-LABlab(47.46, -6.59, 48.29)
CIE-LCHlch(47.46, 48.74, 97.77°)
OKLaboklab(54.48% -0.0238 0.1045)
OKLCHoklch(54.48% 0.107 102.8)
XYZxyz(14.4655, 16.3745, 3.1080)
Luminance0.1637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7215 #151F7C
analogous
#7C3E15 #7C7215 #527C15
triadic
#7C7215 #157C72 #72157C
tetradic
#7C7215 #157C3E #151F7C #7C1552
square
#7C7215 #157C3E #151F7C #7C1552
split-complementary
#7C7215 #15527C #3E157C
monochromatic
#1A1804 #48420C #7C7215 #B0A21E #DCCB30

Accessibility & contrast

On white

4.91
#7C7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7C7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C7215
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7215#FFFFFF#000000##FFFFFF
##7C72151.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#80731D
Tritanopia (blue-blind)
#866961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7c7215;
/* rgb */ color: rgb(124, 114, 21);
/* oklch */ color: oklch(54.5% 0.107 102.8);
Tailwind
colors: {
  custom: {
    50: '#a59a5c',
    500: '#7c7215',
    950: '#000000',
  },
}
SCSS
$custom: #7c7215;
$custom-light: #a59a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7215",
  "rgb": {
    "r": 124,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 54.175,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54484,
    "c": 0.10719,
    "h": 102.8
  },
  "luminance": 0.16374
}

Semantic roles & 50–950 ramp

primary
#7C7215
secondary
#3C47B1
accent
#4BEE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7C7215

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

Preview Lab → · Contrast checker → · Palette generator →

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