#AFBF2D#AFBF2D

#AFBF2D is a light, vivid yellow. Relative luminance 0.466; OKLCH L 76.7% C 0.161 H 115.9°. Best body text is #000000 at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#AFBF2D
RGBrgb(175, 191, 45)
HSLhsl(67, 62%, 46%)
HSVhsv(67, 76%, 75%)
CMYKcmyk(8.4%, 0%, 76.4%, 25.1%)
CIE-LABlab(73.91, -23.17, 66.21)
CIE-LCHlch(73.91, 70.15, 109.29°)
OKLaboklab(76.72% -0.0706 0.1452)
OKLCHoklch(76.72% 0.161 115.9)
XYZxyz(36.7847, 46.5656, 9.5324)
Luminance0.4657 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF2D #3D2DBF
analogous
#BF862D #AFBF2D #66BF2D
triadic
#AFBF2D #2DAFBF #BF2DAF
tetradic
#AFBF2D #2DBF86 #3D2DBF #BF2D66
square
#AFBF2D #2DBF86 #3D2DBF #BF2D66
split-complementary
#AFBF2D #2D66BF #862DBF
monochromatic
#545C16 #828D21 #AFBF2D #C8D653 #D8E284

Accessibility & contrast

On white

2.04
#AFBF2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.31
#AFBF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF2D
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF2D#FFFFFF#000000##000000
##AFBF2D1.002.0410.3110.31
#FFFFFF2.041.0021.0021.00
#00000010.3121.001.001.00
##00000010.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB503
Deuteranopia (green-blind)
#CBB73A
Tritanopia (blue-blind)
#BAB4A4
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf2d;
/* rgb */ color: rgb(175, 191, 45);
/* oklch */ color: oklch(76.7% 0.161 115.9);
Tailwind
colors: {
  custom: {
    50: '#cbd272',
    500: '#afbf2d',
    950: '#000000',
  },
}
SCSS
$custom: #afbf2d;
$custom-light: #cbd272;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf2d",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 45
  },
  "hsl": {
    "h": 66.575,
    "s": 61.864,
    "l": 46.275
  },
  "oklch": {
    "l": 0.76717,
    "c": 0.16146,
    "h": 115.9
  },
  "luminance": 0.46565
}

Semantic roles & 50–950 ramp

primary
#AFBF2D
secondary
#857CCB
accent
#43E555
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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