#6F7A12#6F7A12

#6F7A12 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.2% C 0.120 H 116.0°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#6F7A12
RGBrgb(111, 122, 18)
HSLhsl(66, 74%, 27%)
HSVhsv(66, 85%, 48%)
CMYKcmyk(9%, 0%, 85.2%, 52.2%)
CIE-LABlab(48.69, -17.15, 49.80)
CIE-LCHlch(48.69, 52.67, 109.01°)
OKLaboklab(55.18% -0.0526 0.1078)
OKLCHoklch(55.18% 0.12 116)
XYZxyz(13.6247, 17.3425, 3.2018)
Luminance0.1734 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F7A12 #1D127A
analogous
#7A5112 #6F7A12 #3B7A12
triadic
#6F7A12 #126F7A #7A126F
tetradic
#6F7A12 #127A51 #1D127A #7A123B
square
#6F7A12 #127A51 #1D127A #7A123B
split-complementary
#6F7A12 #123B7A #51127A
monochromatic
#181B04 #3E450A #6F7A12 #A0AF1A #CCDF27

Accessibility & contrast

On white

4.70
#6F7A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#6F7A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F7A12
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F7A12#FFFFFF#000000##FFFFFF
##6F7A121.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#82741D
Tritanopia (blue-blind)
#777268
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #6f7a12;
/* rgb */ color: rgb(111, 122, 18);
/* oklch */ color: oklch(55.2% 0.120 116.0);
Tailwind
colors: {
  custom: {
    50: '#9ca05c',
    500: '#6f7a12',
    950: '#000000',
  },
}
SCSS
$custom: #6f7a12;
$custom-light: #9ca05c;
$custom-dark: #000000;
JSON
{
  "hex": "#6f7a12",
  "rgb": {
    "r": 111,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 66.346,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.55181,
    "c": 0.11996,
    "h": 116
  },
  "luminance": 0.17342
}

Semantic roles & 50–950 ramp

primary
#6F7A12
secondary
#4438B0
accent
#37F14B
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0F0E04
muted
#7E7E79

Preview Lab

Preview with #6F7A12

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

Preview Lab → · Contrast checker → · Palette generator →

#6F7A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva