#AFB341#AFB341

#AFB341 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.2% C 0.136 H 111.2°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#AFB341
RGBrgb(175, 179, 65)
HSLhsl(62, 47%, 48%)
HSVhsv(62, 64%, 70%)
CMYKcmyk(2.2%, 0%, 63.7%, 29.8%)
CIE-LABlab(70.69, -16.12, 55.68)
CIE-LCHlch(70.69, 57.97, 106.14°)
OKLaboklab(74.18% -0.049 0.1263)
OKLCHoklch(74.18% 0.136 111.2)
XYZxyz(34.7544, 41.7367, 11.2252)
Luminance0.4174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB341 #4541B3
analogous
#B37E41 #AFB341 #76B341
triadic
#AFB341 #41AFB3 #B341AF
tetradic
#AFB341 #41B37E #4541B3 #B34176
square
#AFB341 #41B37E #4541B3 #B34176
split-complementary
#AFB341 #4176B3 #7E41B3
monochromatic
#575920 #838631 #AFB341 #C5C869 #D6D996

Accessibility & contrast

On white

2.25
#AFB341 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#AFB341 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB341
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB341#FFFFFF#000000##000000
##AFB3411.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB32
Deuteranopia (green-blind)
#C1AE48
Tritanopia (blue-blind)
#BBA89B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb341;
/* rgb */ color: rgb(175, 179, 65);
/* oklch */ color: oklch(74.2% 0.136 111.2);
Tailwind
colors: {
  custom: {
    50: '#cac97b',
    500: '#afb341',
    950: '#000000',
  },
}
SCSS
$custom: #afb341;
$custom-light: #cac97b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb341",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 65
  },
  "hsl": {
    "h": 62.105,
    "s": 46.721,
    "l": 47.843
  },
  "oklch": {
    "l": 0.74176,
    "c": 0.1355,
    "h": 111.2
  },
  "luminance": 0.41736
}

Semantic roles & 50–950 ramp

primary
#AFB341
secondary
#8D8BC4
accent
#51D656
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB341

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

Preview Lab → · Contrast checker → · Palette generator →

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