#798123#798123

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

Color values

HEX#798123
RGBrgb(121, 129, 35)
HSLhsl(65, 57%, 32%)
HSVhsv(65, 73%, 51%)
CMYKcmyk(6.2%, 0%, 72.9%, 49.4%)
CIE-LABlab(51.71, -15.55, 47.17)
CIE-LCHlch(51.71, 49.66, 108.24°)
OKLaboklab(57.84% -0.0473 0.105)
OKLCHoklch(57.84% 0.115 114.2)
XYZxyz(16.0392, 19.8871, 4.5835)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798123 #2B2381
analogous
#815A23 #798123 #4A8123
triadic
#798123 #237981 #812379
tetradic
#798123 #23815A #2B2381 #81234A
square
#798123 #23815A #2B2381 #81234A
split-complementary
#798123 #234A81 #5A2381
monochromatic
#1F2109 #4C5116 #798123 #A6B130 #C4CF4F

Accessibility & contrast

On white

4.22
#798123 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798123#FFFFFF#000000##000000
##7981231.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798123;
/* rgb */ color: rgb(121, 129, 35);
/* oklch */ color: oklch(57.8% 0.115 114.2);
Tailwind
colors: {
  custom: {
    50: '#a3a565',
    500: '#798123',
    950: '#000000',
  },
}
SCSS
$custom: #798123;
$custom-light: #a3a565;
$custom-dark: #000000;
JSON
{
  "hex": "#798123",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 35
  },
  "hsl": {
    "h": 65.106,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57836,
    "c": 0.11515,
    "h": 114.2
  },
  "luminance": 0.19887
}

Semantic roles & 50–950 ramp

primary
#798123
secondary
#564DB3
accent
#47E154
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798123

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

Preview Lab → · Contrast checker → · Palette generator →

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