#AFBF62#AFBF62

#AFBF62 is a light, moderate yellow-green. Relative luminance 0.473; OKLCH L 77.2% C 0.120 H 117.3°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#AFBF62
RGBrgb(175, 191, 98)
HSLhsl(70, 42%, 57%)
HSVhsv(70, 49%, 75%)
CMYKcmyk(8.4%, 0%, 48.7%, 25.1%)
CIE-LABlab(74.35, -19.46, 44.72)
CIE-LCHlch(74.35, 48.77, 113.52°)
OKLaboklab(77.22% -0.0551 0.1065)
OKLCHoklch(77.22% 0.12 117.3)
XYZxyz(38.5150, 47.2577, 18.6456)
Luminance0.4726 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF62 #7262BF
analogous
#BFA162 #AFBF62 #81BF62
triadic
#AFBF62 #62AFBF #BF62AF
tetradic
#AFBF62 #62BFA1 #7262BF #BF6281
square
#AFBF62 #62BFA1 #7262BF #BF6281
split-complementary
#AFBF62 #6281BF #A162BF
monochromatic
#6A7630 #91A242 #AFBF62 #C5D18D #DBE2B9

Accessibility & contrast

On white

2.01
#AFBF62 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#AFBF62 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF62
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF62#FFFFFF#000000##000000
##AFBF621.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB75A
Deuteranopia (green-blind)
#C8B767
Tritanopia (blue-blind)
#B7B6A9
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afbf62;
/* rgb */ color: rgb(175, 191, 98);
/* oklch */ color: oklch(77.2% 0.120 117.3);
Tailwind
colors: {
  custom: {
    50: '#c8d291',
    500: '#afbf62',
    950: '#000000',
  },
}
SCSS
$custom: #afbf62;
$custom-light: #c8d291;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf62",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 98
  },
  "hsl": {
    "h": 70.323,
    "s": 42.081,
    "l": 56.667
  },
  "oklch": {
    "l": 0.77215,
    "c": 0.1199,
    "h": 117.3
  },
  "luminance": 0.47257
}

Semantic roles & 50–950 ramp

primary
#AFBF62
secondary
#B2ABD1
accent
#56D26B
background
#FCFCF9
surface
#F8F9F1
border
#D1D2CB
text
#13140D
muted
#82827E

Preview Lab

Preview with #AFBF62

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

Preview Lab → · Contrast checker → · Palette generator →

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