#798127#798127

#798127 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.112 H 114.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#798127
RGBrgb(121, 129, 39)
HSLhsl(65, 54%, 33%)
HSVhsv(65, 70%, 51%)
CMYKcmyk(6.2%, 0%, 69.8%, 49.4%)
CIE-LABlab(51.74, -15.31, 45.58)
CIE-LCHlch(51.74, 48.08, 108.57°)
OKLaboklab(57.87% -0.0462 0.1024)
OKLCHoklch(57.87% 0.112 114.3)
XYZxyz(16.1020, 19.9122, 4.9143)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798127 #2F2781
analogous
#815C27 #798127 #4C8127
triadic
#798127 #277981 #812779
tetradic
#798127 #27815C #2F2781 #81274C
square
#798127 #27815C #2F2781 #81274C
split-complementary
#798127 #274C81 #5C2781
monochromatic
#21230B #4D5219 #798127 #A5B035 #C2CC56

Accessibility & contrast

On white

4.21
#798127 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#798127 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798127
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798127#FFFFFF#000000##000000
##7981271.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B1A
Deuteranopia (green-blind)
#8A7C2E
Tritanopia (blue-blind)
#81796F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798127;
/* rgb */ color: rgb(121, 129, 39);
/* oklch */ color: oklch(57.9% 0.112 114.3);
Tailwind
colors: {
  custom: {
    50: '#a2a567',
    500: '#798127',
    950: '#000000',
  },
}
SCSS
$custom: #798127;
$custom-light: #a2a567;
$custom-dark: #000000;
JSON
{
  "hex": "#798127",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 39
  },
  "hsl": {
    "h": 65.333,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57868,
    "c": 0.1123,
    "h": 114.3
  },
  "luminance": 0.19912
}

Semantic roles & 50–950 ramp

primary
#798127
secondary
#5B53B1
accent
#4BDD58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798127

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

Preview Lab → · Contrast checker → · Palette generator →

#798127 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva