#AFB12F#AFB12F

#AFB12F is a light, vivid yellow. Relative luminance 0.408; OKLCH L 73.6% C 0.146 H 110.4°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#AFB12F
RGBrgb(175, 177, 47)
HSLhsl(61, 58%, 44%)
HSVhsv(61, 73%, 69%)
CMYKcmyk(1.1%, 0%, 73.4%, 30.6%)
CIE-LABlab(70.01, -16.09, 61.92)
CIE-LCHlch(70.01, 63.98, 104.57°)
OKLaboklab(73.6% -0.0507 0.1365)
OKLCHoklch(73.6% 0.146 110.4)
XYZxyz(33.9156, 40.7644, 8.7705)
Luminance0.4076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB12F #312FB1
analogous
#B1722F #AFB12F #6EB12F
triadic
#AFB12F #2FAFB1 #B12FAF
tetradic
#AFB12F #2FB172 #312FB1 #B12F6E
square
#AFB12F #2FB172 #312FB1 #B12F6E
split-complementary
#AFB12F #2F6EB1 #722FB1
monochromatic
#4F5015 #7F8122 #AFB12F #CED04D #DBDD7E

Accessibility & contrast

On white

2.29
#AFB12F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#AFB12F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB12F
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB12F#FFFFFF#000000##000000
##AFB12F1.002.299.159.15
#FFFFFF2.291.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA914
Deuteranopia (green-blind)
#C0AD39
Tritanopia (blue-blind)
#BBA698
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb12f;
/* rgb */ color: rgb(175, 177, 47);
/* oklch */ color: oklch(73.6% 0.146 110.4);
Tailwind
colors: {
  custom: {
    50: '#cac871',
    500: '#afb12f',
    950: '#000000',
  },
}
SCSS
$custom: #afb12f;
$custom-light: #cac871;
$custom-dark: #000000;
JSON
{
  "hex": "#afb12f",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 47
  },
  "hsl": {
    "h": 60.923,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.73595,
    "c": 0.1456,
    "h": 110.4
  },
  "luminance": 0.40763
}

Semantic roles & 50–950 ramp

primary
#AFB12F
secondary
#7876C5
accent
#47E149
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB12F

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

Preview Lab → · Contrast checker → · Palette generator →

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