#6F7227#6F7227

#6F7227 is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.4% C 0.097 H 111.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#6F7227
RGBrgb(111, 114, 39)
HSLhsl(62, 49%, 30%)
HSVhsv(62, 66%, 45%)
CMYKcmyk(2.6%, 0%, 65.8%, 55.3%)
CIE-LABlab(46.39, -11.72, 39.78)
CIE-LCHlch(46.39, 41.47, 106.42°)
OKLaboklab(53.38% -0.0355 0.0904)
OKLCHoklch(53.38% 0.097 111.5)
XYZxyz(12.9394, 15.5609, 4.2410)
Luminance0.1556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F7227 #2A2772
analogous
#725027 #6F7227 #497227
triadic
#6F7227 #276F72 #72276F
tetradic
#6F7227 #277250 #2A2772 #722749
square
#6F7227 #277250 #2A2772 #722749
split-complementary
#6F7227 #274972 #502772
monochromatic
#161708 #434417 #6F7227 #9BA037 #BFC350

Accessibility & contrast

On white

5.11
#6F7227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#6F7227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F7227
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F7227#FFFFFF#000000##FFFFFF
##6F72271.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1D
Deuteranopia (green-blind)
#7B6F2C
Tritanopia (blue-blind)
#776B62
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6f7227;
/* rgb */ color: rgb(111, 114, 39);
/* oklch */ color: oklch(53.4% 0.097 111.5);
Tailwind
colors: {
  custom: {
    50: '#9b9a65',
    500: '#6f7227',
    950: '#000000',
  },
}
SCSS
$custom: #6f7227;
$custom-light: #9b9a65;
$custom-dark: #000000;
JSON
{
  "hex": "#6f7227",
  "rgb": {
    "r": 111,
    "g": 114,
    "b": 39
  },
  "hsl": {
    "h": 62.4,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.53383,
    "c": 0.09713,
    "h": 111.5
  },
  "luminance": 0.15561
}

Semantic roles & 50–950 ramp

primary
#6F7227
secondary
#5450A4
accent
#4FD955
background
#F9F9F6
surface
#F2F2EB
border
#CCCCC6
text
#0E0E06
muted
#7E7E7A

Preview Lab

Preview with #6F7227

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

Preview Lab → · Contrast checker → · Palette generator →

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