#798023#798023

#798023 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.6% C 0.114 H 113.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#798023
RGBrgb(121, 128, 35)
HSLhsl(65, 57%, 32%)
HSVhsv(65, 73%, 50%)
CMYKcmyk(5.5%, 0%, 72.7%, 49.8%)
CIE-LABlab(51.41, -15.01, 46.87)
CIE-LCHlch(51.41, 49.22, 107.76°)
OKLaboklab(57.6% -0.0458 0.1044)
OKLCHoklch(57.6% 0.114 113.7)
XYZxyz(15.9082, 19.6250, 4.5398)
Luminance0.1963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798023 #2A2380
analogous
#805923 #798023 #4B8023
triadic
#798023 #237980 #802379
tetradic
#798023 #238059 #2A2380 #80234B
square
#798023 #238059 #2A2380 #80234B
split-complementary
#798023 #234B80 #592380
monochromatic
#1E2009 #4C5016 #798023 #A6B030 #C5CF4F

Accessibility & contrast

On white

4.26
#798023 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#798023 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798023
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798023#FFFFFF#000000##000000
##7980231.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A13
Deuteranopia (green-blind)
#8A7B2A
Tritanopia (blue-blind)
#81786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #798023;
/* rgb */ color: rgb(121, 128, 35);
/* oklch */ color: oklch(57.6% 0.114 113.7);
Tailwind
colors: {
  custom: {
    50: '#a3a465',
    500: '#798023',
    950: '#000000',
  },
}
SCSS
$custom: #798023;
$custom-light: #a3a465;
$custom-dark: #000000;
JSON
{
  "hex": "#798023",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 35
  },
  "hsl": {
    "h": 64.516,
    "s": 57.055,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57597,
    "c": 0.11398,
    "h": 113.7
  },
  "luminance": 0.19625
}

Semantic roles & 50–950 ramp

primary
#798023
secondary
#544DB2
accent
#47E053
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798023

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

Preview Lab → · Contrast checker → · Palette generator →

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