#7C751B#7C751B

#7C751B is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.2% C 0.107 H 104.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7C751B
RGBrgb(124, 117, 27)
HSLhsl(56, 64%, 30%)
HSVhsv(56, 78%, 49%)
CMYKcmyk(0%, 5.6%, 78.2%, 51.4%)
CIE-LABlab(48.37, -8.03, 47.08)
CIE-LCHlch(48.37, 47.76, 99.68°)
OKLaboklab(55.22% -0.0272 0.1032)
OKLCHoklch(55.22% 0.107 104.8)
XYZxyz(14.8719, 17.0874, 3.5515)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C751B #1B227C
analogous
#7C451B #7C751B #537C1B
triadic
#7C751B #1B7C75 #751B7C
tetradic
#7C751B #1B7C45 #1B227C #7C1B53
square
#7C751B #1B7C45 #1B227C #7C1B53
split-complementary
#7C751B #1B537C #451B7C
monochromatic
#191805 #4A4610 #7C751B #AEA426 #D5CA3D

Accessibility & contrast

On white

4.75
#7C751B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7C751B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C751B
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C751B#FFFFFF#000000##FFFFFF
##7C751B1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807107
Deuteranopia (green-blind)
#827522
Tritanopia (blue-blind)
#866C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7c751b;
/* rgb */ color: rgb(124, 117, 27);
/* oklch */ color: oklch(55.2% 0.107 104.8);
Tailwind
colors: {
  custom: {
    50: '#a59c5f',
    500: '#7c751b',
    950: '#000000',
  },
}
SCSS
$custom: #7c751b;
$custom-light: #a59c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c751b",
  "rgb": {
    "r": 124,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 55.67,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55217,
    "c": 0.1067,
    "h": 104.8
  },
  "luminance": 0.17087
}

Semantic roles & 50–950 ramp

primary
#7C751B
secondary
#434BB0
accent
#4DE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C751B

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

Preview Lab → · Contrast checker → · Palette generator →

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