#AFB62F#AFB62F

#AFB62F is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.7% C 0.151 H 112.5°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#AFB62F
RGBrgb(175, 182, 47)
HSLhsl(63, 59%, 45%)
HSVhsv(63, 74%, 71%)
CMYKcmyk(3.8%, 0%, 74.2%, 28.6%)
CIE-LABlab(71.40, -18.62, 63.23)
CIE-LCHlch(71.40, 65.92, 106.41°)
OKLaboklab(74.71% -0.0578 0.1393)
OKLCHoklch(74.71% 0.151 112.5)
XYZxyz(34.9214, 42.7759, 9.1058)
Luminance0.4278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB62F #362FB6
analogous
#B6792F #AFB62F #6CB62F
triadic
#AFB62F #2FAFB6 #B62FAF
tetradic
#AFB62F #2FB679 #362FB6 #B62F6C
square
#AFB62F #2FB679 #362FB6 #B62F6C
split-complementary
#AFB62F #2F6CB6 #792FB6
monochromatic
#515516 #808522 #AFB62F #CBD250 #DADE81

Accessibility & contrast

On white

2.20
#AFB62F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.56
#AFB62F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB62F
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB62F#FFFFFF#000000##000000
##AFB62F1.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD11
Deuteranopia (green-blind)
#C4B03A
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb62f;
/* rgb */ color: rgb(175, 182, 47);
/* oklch */ color: oklch(74.7% 0.151 112.5);
Tailwind
colors: {
  custom: {
    50: '#cacb72',
    500: '#afb62f',
    950: '#000000',
  },
}
SCSS
$custom: #afb62f;
$custom-light: #cacb72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb62f",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 47
  },
  "hsl": {
    "h": 63.111,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74708,
    "c": 0.15077,
    "h": 112.5
  },
  "luminance": 0.42775
}

Semantic roles & 50–950 ramp

primary
#AFB62F
secondary
#7D79C7
accent
#46E24E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB62F

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

Preview Lab → · Contrast checker → · Palette generator →

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