#7C7138#7C7138

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

Color values

HEX#7C7138
RGBrgb(124, 113, 56)
HSLhsl(50, 38%, 35%)
HSVhsv(50, 55%, 49%)
CMYKcmyk(0%, 8.9%, 54.8%, 51.4%)
CIE-LABlab(47.47, -3.79, 32.84)
CIE-LCHlch(47.47, 33.06, 96.59°)
OKLaboklab(54.59% -0.0117 0.0775)
OKLCHoklch(54.59% 0.078 98.6)
XYZxyz(14.9316, 16.3814, 6.1160)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7138 #38437C
analogous
#7C4F38 #7C7138 #657C38
triadic
#7C7138 #387C71 #71387C
tetradic
#7C7138 #387C4F #38437C #7C3865
square
#7C7138 #387C4F #38437C #7C3865
split-complementary
#7C7138 #38657C #4F387C
monochromatic
#282412 #524B25 #7C7138 #A6974B #BEB270

Accessibility & contrast

On white

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

On black

4.28
#7C7138 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7C7138#FFFFFF#000000##FFFFFF
##7C71381.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6E33
Deuteranopia (green-blind)
#7E723B
Tritanopia (blue-blind)
#856A64
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7c7138;
/* rgb */ color: rgb(124, 113, 56);
/* oklch */ color: oklch(54.6% 0.078 98.6);
Tailwind
colors: {
  custom: {
    50: '#a49970',
    500: '#7c7138',
    950: '#000000',
  },
}
SCSS
$custom: #7c7138;
$custom-light: #a49970;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7138",
  "rgb": {
    "r": 124,
    "g": 113,
    "b": 56
  },
  "hsl": {
    "h": 50.294,
    "s": 37.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.54587,
    "c": 0.07836,
    "h": 98.6
  },
  "luminance": 0.16381
}

Semantic roles & 50–950 ramp

primary
#7C7138
secondary
#6873A7
accent
#6DCE5A
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0D07
muted
#7F7E7A

Preview Lab

Preview with #7C7138

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

Preview Lab → · Contrast checker → · Palette generator →

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